We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 722dfb5 commit 572547cCopy full SHA for 572547c
websocket-sharp/WebSocket.cs
@@ -2149,9 +2149,6 @@ private HttpResponse sendHandshakeRequest ()
2149
var res = req.GetResponse (_stream, timeout);
2150
2151
if (res.IsUnauthorized) {
2152
- if (_credentials == null)
2153
- return res;
2154
-
2155
var val = res.Headers["WWW-Authenticate"];
2156
2157
if (val.IsNullOrEmpty ()) {
@@ -2170,6 +2167,9 @@ private HttpResponse sendHandshakeRequest ()
2170
2167
2171
2168
_authChallenge = achal;
2172
2169
+ if (_credentials == null)
+ return res;
+
2173
var ares = new AuthenticationResponse (
2174
_authChallenge, _credentials, _nonceCount
2175
);
0 commit comments