Apply the POST -> GET logic also to 301

This commit is contained in:
JustArchi
2020-09-12 13:26:26 +02:00
parent 568f9bc2e6
commit 033814198f

View File

@@ -731,6 +731,7 @@ namespace ArchiSteamFarm {
}
switch (response.StatusCode) {
case HttpStatusCode.MovedPermanently: // Per https://tools.ietf.org/html/rfc7231#section-6.4.3, a 301 redirect may be performed using a GET request
case HttpStatusCode.Redirect: // Per https://tools.ietf.org/html/rfc7231#section-6.4.3, a 302 redirect may be performed using a GET request
case HttpStatusCode.SeeOther: // Per https://tools.ietf.org/html/rfc7231#section-6.4.4, a 303 redirect should be performed using a GET request
if (httpMethod != HttpMethod.Head) {