You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
I don't know why that's the case since just forwarding the client's Connection header using the $http_Connection variable seems more reasonable than that.
natemcmaster
changed the title
[1.1.x] Consider aligning request body handling behavior with 1.0.x
Correctly handle upgrade requests that also have content-length specified
Apr 13, 2017
Discussed with team. Let's leave this for 2.0. Doesn't seem urgent enough for a 1.1.x patch. As noted aspnet/Security#1121, this bug only appears when the client is sending an unusual combination of Upgrade and Content-Length.
natemcmaster
changed the title
Correctly handle upgrade requests that also have content-length specified
Reject upgrade requests that also have content-length specified
Apr 20, 2017
aspnet/Security#1121 (comment) for explanation and context.
1.0.x behavior:
https://github.com/aspnet/KestrelHttpServer/blob/rel/1.0.3/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/MessageBody.cs#L130
1.1.x behavior:
https://github.com/aspnet/KestrelHttpServer/blob/rel/1.1.1/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/MessageBody.cs#L245
Let's argue whether this is a regression fix or a breaking change 😄 But we're likely to see more people having issues like the one above.
It doesn't help that nginx's own guidance is to force the
Connection: upgrade
header:http://nginx.org/en/docs/http/websocket.html
I don't know why that's the case since just forwarding the client's
Connection
header using the$http_Connection
variable seems more reasonable than that.cc @muratg @Eilon @davidfowl
The text was updated successfully, but these errors were encountered: