-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
HttpServerOperations overrides content-length to 0 on HTTP HEAD #25908
Comments
The first issue is that both When this is corrected, "application/octet-stream" is the chosen content type as a fallback. However there is a second issue. For HTTP HEAD in A third issue is that |
I've updated I've extended this further in 5.3 so that |
Affects: 5.2.9.RELEASE
According to the specification RFC https://tools.ietf.org/html/rfc7231#section-4.3.2
This is the endpoint
With GET request these are the request/response headers
With HEAD request these are the request/response headers
In the first case with GET,
transfer-encoding
is used, while in the case with HEAD it isContent-Length: 20
. Why is that?Also additional question why Spring Framework decides to return
Content-Type: text/event-stream
as it is not specified that this is SSE.This is related to reactor/reactor-netty#1333
The text was updated successfully, but these errors were encountered: