Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aborted upload to server logs status code 200 #3969

Closed
kanongil opened this issue Aug 15, 2019 · 1 comment
Closed

Aborted upload to server logs status code 200 #3969

kanongil opened this issue Aug 15, 2019 · 1 comment
Assignees
Labels
non issue Issue is not a problem or requires changes

Comments

@kanongil
Copy link
Contributor

Do a curl -v -H 'Content-Length: 42' localhost:8080 followed by ctrl-c, and the server will log a succesful response with statusCode: 200 (even when it doesn't match any routes).

I would expect a code 499. This is another manifestation of the issue in #3878.

Note, if I don't abort it with ctrl-c, it eventually times out, and logs statusCode: 503.

Context

  • node version: v12.8.0
  • hapi version: 18.3.1
  • os: macOS 10.14
@kanongil
Copy link
Contributor Author

Ignore this – turns out I was doing it wrong. But to be fair, so is hapi-pino.

@hueniverse hueniverse self-assigned this Aug 15, 2019
@hueniverse hueniverse added the non issue Issue is not a problem or requires changes label Aug 15, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
non issue Issue is not a problem or requires changes
Projects
None yet
Development

No branches or pull requests

2 participants