mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Closes #1907
This commit is contained in:
@@ -685,6 +685,17 @@ namespace ArchiSteamFarm {
|
||||
redirectUri = new Uri(requestUri, redirectUri);
|
||||
}
|
||||
|
||||
switch (response.StatusCode) {
|
||||
case HttpStatusCode.SeeOther:
|
||||
// Per https://tools.ietf.org/html/rfc7231#section-6.4.4, a 303 redirect should be performed with a GET request
|
||||
httpMethod = HttpMethod.Get;
|
||||
|
||||
// Data doesn't make any sense for a GET request, clear it
|
||||
data = null;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
response.Dispose();
|
||||
|
||||
// Per https://tools.ietf.org/html/rfc7231#section-7.1.2, a redirect location without a fragment should inherit the fragment from the original URI
|
||||
|
||||
Reference in New Issue
Block a user