-
Notifications
You must be signed in to change notification settings - Fork 204
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
content-length missing when set on header response #313
Comments
Hey! 👋 I'm guessing this is coming from here: miniflare/packages/http-server/src/index.ts Lines 179 to 202 in ae2349c
This header probably shouldn't be deleted unless some encoders are set, but even then, I think it's still the right thing to do with encodeBody set to auto ? Let me know if I'm misunderstanding something.
|
HEAD responses don't have a body so not sure how |
Actually, even our HEAD response has |
Also, the content-encoding we're setting isn't one of the supported ones so it seems weird to delete content length in that case. |
If the user sets a content length in response to a HEAD request that content-length is sent to the eyeball. Under miniflare the content-length is stripped
The text was updated successfully, but these errors were encountered: