Skip to content

Comments

Don't restore the upgrade header if there is no corresponding Connection entry#1731

Merged
MihaZupan merged 1 commit intodotnet:mainfrom
MihaZupan:upgrade-response-upgrade-header
May 26, 2022
Merged

Don't restore the upgrade header if there is no corresponding Connection entry#1731
MihaZupan merged 1 commit intodotnet:mainfrom
MihaZupan:upgrade-response-upgrade-header

Conversation

@MihaZupan
Copy link
Member

Matches the behavior used on the request side to only add the "Upgrade" header if the connection header contains an entry for it: https://github.com/microsoft/reverse-proxy/blob/94bd1273d223a37ab078a19d3173f5686543a68e/src/ReverseProxy/Forwarder/HttpForwarder.cs#L305-L323

@MihaZupan MihaZupan added this to the YARP 2.0.0 milestone May 23, 2022
@MihaZupan MihaZupan requested a review from Tratcher as a code owner May 23, 2022 17:21
@MihaZupan MihaZupan merged commit 8d479b4 into dotnet:main May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants