Skip to content

Commit

Permalink
fix: eample
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Nov 4, 2024
1 parent a0210c8 commit 9ce4b16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18
Expand Down
4 changes: 2 additions & 2 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ http.createServer(async (request, response) => {
chunks.push(chunk)
}

const { headers, body } = await server.request({
const { status, headers, body } = await server.request({
headers: request.headers,
body: Buffer.concat(chunks),
})

response.writeHead(200, headers)
response.writeHead(status ?? 200, headers)
response.write(body)
response.end()
}).listen(3000)
Expand Down

0 comments on commit 9ce4b16

Please sign in to comment.