Skip to content
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

Parse cookies on redirect (legacy AndroidClientHandler) #7373

Merged

Conversation

dominik-weber
Copy link
Contributor

When using the AllowAutoRedirect feature of AndroidClientHandler to automatically follow 3xx redirects, the cookies that are returned together with the redirection are not processed. If the redirection target requires the cookies returned by the first request, the call will fail.

With this change the cookies are always processes before the redirection takes place. Fixes #3954.

Please note that this change was already merged for AndroidMessageHandler (see #6987), but not for the legacy AndroidClientHandler.

@grendello
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jonpryor jonpryor merged commit 0465be3 into dotnet:main Sep 16, 2022
grendello added a commit to grendello/xamarin-android that referenced this pull request Sep 16, 2022
* main:
  [docs] Document how to debug JNI Object Reference crashes (dotnet#7362)
  [Mono.Android] Parse cookies on redirect in AndroidClientHandler (dotnet#7373)
  Bump to xamarin/Java.Interop/main@fcc33ce2 (dotnet#7380)
  Bump to dotnet/installer@11f6b8f 7.0.100-rc.2.22459.2 (dotnet#7367)
  LEGO: Merge pull request 7385
  Bump to xamarin/monodroid@135be73 (dotnet#7384)
  Bump to xamarin/xamarin-android-tools/main@0be567a9 (dotnet#7383)
  Bump to Tessil/robin-map@784245b4 [v1.0.1] (dotnet#7382)
  Bump to mono/mono@a96bde97 (dotnet#7372)
  [ci] Fix test categories for emu smoke tests (dotnet#7374)
  Bump to xamarin/monodroid@43583d02 (dotnet#7370)
@dominik-weber dominik-weber deleted the dweber-fix-cookie-redirect-legacy branch September 19, 2022 11:47
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AndroidClientHandler doesn't forward cookies on redirect
3 participants