Skip to content

Commit e7c4b14

Browse files
committed
Added IsRedirect property to the HttpResponse class
1 parent 696287e commit e7c4b14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

websocket-sharp/HttpResponse.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ public bool IsProxyAuthenticationRequired {
9292
}
9393
}
9494

95+
public bool IsRedirect {
96+
get {
97+
return _code == "302";
98+
}
99+
}
100+
95101
public bool IsUnauthorized {
96102
get {
97103
return _code == "401";

0 commit comments

Comments
 (0)