-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Handle spaces after request line #41823
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
Handle spaces after request line #41823
Conversation
|
Hi @Tratcher. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document. |
|
Hi @Tratcher. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge. To learn more about how to prepare a servicing PR click here. |
e1ee716 to
4f7d721
Compare
| if (_allowSpaceAfterRequestLine) | ||
| { | ||
| // Skip a space after the request line | ||
| if (reader.TryPeek(out byte s) && s == ByteSpace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One space?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, from the reports we think that's all we need.
|
This was approved over email. |
Handle spaces after request line
Handle malformed requests with a space between the request line and the first header
Description
A partner team reported compat issues with a client that is sending a space between the HTTP/1.1 request line and the first header. Kestrel (correctly) rejects this request as invalid. IIS allows this. The client will eventually be fixed, but they've requested a 6.0 patch to unblock them for the next few months. We do not plan to port this change to main/7.0.
Fixes #41824
Customer Impact
Preventing customer adoption of Kestrel due to client comapt issues.
Regression?
Risk
This is an opt in adjustment to the parser.
Verification
Packaging changes reviewed?