Commit ef31401
authored
[Mono.Android] AndroidMessageHandler should follow HTTP-308 redirects (#8951)
Fixes: #8946
Context: 1e5bfa3
For some reason we skipped [`HttpStatusCode.PermanentRedirect`][0]
(HTTP-308) when handling redirects in 1e5bfa3.
Update `AndroidMessageHandler.HandleRedirect()` to follow an HTTP
redirect on HTTP-308 errors.
[0]: https://learn.microsoft.com/dotnet/api/system.net.httpstatuscode?view=net-8.0#system-net-httpstatuscode-permanentredirect1 parent 4edf89c commit ef31401
File tree
2 files changed
+15
-0
lines changed- src/Mono.Android/Xamarin.Android.Net
- tests/Mono.Android-Tests/Xamarin.Android.Net
2 files changed
+15
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
| 830 | + | |
830 | 831 | | |
831 | 832 | | |
832 | 833 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
237 | 251 | | |
238 | 252 | | |
239 | 253 | | |
| |||
0 commit comments