Skip to content

Commit cbd2f6a

Browse files
committed
Replaced HttpStatusCode.PermanentRedirect with 308 for compatibility with .NET Standard 2.0
1 parent 97fe17e commit cbd2f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StandardSocketsHttpHandler/Net/Http/SocketsHttpHandler/RedirectHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private Uri GetUriForRedirect(Uri requestUri, HttpResponseMessage response)
8181
case HttpStatusCode.SeeOther:
8282
case HttpStatusCode.TemporaryRedirect:
8383
case HttpStatusCode.MultipleChoices:
84-
case HttpStatusCode.PermanentRedirect:
84+
case (HttpStatusCode)308: // HttpStatusCode.PermanentRedirect
8585
break;
8686

8787
default:

0 commit comments

Comments
 (0)