We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b42272 commit ece20abCopy full SHA for ece20ab
add-http-pages/index.test.ts
@@ -151,7 +151,7 @@ it('responses 404', async () => {
151
await app.listen()
152
let err = await requestError(app, 'GET', '/unknown')
153
expect(err.statusCode).toEqual(404)
154
- expect(err.message).toEqual('Not found')
+ expect(err.message).toEqual('Not found\n')
155
})
156
157
it('has custom HTTP processor', async () => {
base-server/index.js
@@ -771,7 +771,7 @@ export class BaseServer {
771
}
772
if (!processed) {
773
res.writeHead(404, { 'Content-Type': 'text/plain' })
774
- res.end('Not found')
+ res.end('Not found\n')
775
776
} else {
777
await rule(req, res)
0 commit comments