Skip to content

Ensure multi-cookie headers are joined with ; instead of , #229

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

Merged
merged 3 commits into from
Oct 14, 2022

Conversation

mjrousos
Copy link
Member

In cases of multi-headers, HttpClient concatenates the headers with , . In the case of multi-header cookie headers, though (which can happen because of dotnet/aspnetcore#26461), RFC 6265 specifies that multiple cookies must be concatenated with ; when writing the Cookie header.

HttpClient doesn't special case the Cookie header as it should, so this updates the RemoteAppAuthenticationService to special case cookie headers and concatenate them itself, if needed.

Fixes #228

@mjrousos mjrousos requested a review from Tratcher October 14, 2022 15:20
…tication/RemoteAppAuthenticationService.cs

Co-authored-by: Chris Ross <[email protected]>
@mjrousos mjrousos merged commit 0d891e9 into main Oct 14, 2022
@mjrousos mjrousos deleted the mjrousos/228 branch October 14, 2022 19:18
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.

Remote authentication not working as expected
2 participants