Skip to content

Skip empty lines between requests - #43228

Merged
adityamandaleeka merged 1 commit into
dotnet:mainfrom
adityamandaleeka:empty_lines_between_requests
Aug 12, 2022
Merged

adityamandaleeka merged 1 commit into
dotnet:mainfrom
adityamandaleeka:empty_lines_between_requests

Conversation

@adityamandaleeka

Copy link
Copy Markdown
Member

Fix #42697

Some clients send extra new lines (CRLF) between requests. This updates Kestrel to allow that.

The extra lines were being interpreted as an invalid start of the next request, causing a 400 response after the first response. We previously fixed a case where we consumed these at the start of a request, but we missed a case where they were not consumed at the end of a connection.

@Tratcher

Copy link
Copy Markdown
Member

Thanks Aditya!

@adityamandaleeka
adityamandaleeka enabled auto-merge (squash) August 12, 2022 02:55
@adityamandaleeka
adityamandaleeka merged commit 38ebb51 into dotnet:main Aug 12, 2022
@ghost ghost added this to the 7.0-rc1 milestone Aug 12, 2022
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requests with new lines at the end cause extra 400 responses

3 participants