mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Misc
This commit is contained in:
@@ -468,10 +468,7 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
// WARNING: We still have undisposed response by now, make sure to dispose it ASAP if we're not returning it!
|
||||
|
||||
ushort status = (ushort) response.StatusCode;
|
||||
|
||||
if ((status >= 300) && (status < 400) && (maxRedirections > 0)) {
|
||||
if ((response.StatusCode >= HttpStatusCode.Ambiguous) && (response.StatusCode < HttpStatusCode.BadRequest) && (maxRedirections > 0)) {
|
||||
Uri redirectUri = response.Headers.Location;
|
||||
|
||||
if (redirectUri.IsAbsoluteUri) {
|
||||
@@ -503,7 +500,6 @@ namespace ArchiSteamFarm {
|
||||
ArchiLogger.LogGenericDebug(string.Format(Strings.ErrorFailingRequest, requestUri));
|
||||
ArchiLogger.LogGenericDebug(string.Format(Strings.StatusCode, response.StatusCode));
|
||||
ArchiLogger.LogGenericDebug(string.Format(Strings.Content, await response.Content.ReadAsStringAsync().ConfigureAwait(false)));
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user