Skip to content
Permalink
Browse files

Check if AuthenticationNeeded aborted the request before continuing.

  • Loading branch information...
markhellegers authored and pulkomandy committed Mar 6, 2016
1 parent 303321a commit 10faffadf3d46b293e7bb40d545d8c7de98eb60f
Showing with 6 additions and 1 deletion.
  1. +6 −1 Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp
@@ -514,8 +514,13 @@ void BUrlProtocolHandler::HeadersReceived(BUrlRequest* /*caller*/)
response.setHTTPHeaderField(headerPair.Name(), headerPair.Value());
}

if (statusCode == 401)
if (statusCode == 401) {
AuthenticationNeeded(httpRequest, response);
// AuthenticationNeeded may have aborted the request
// so we need to make sure we can continue.
if (!m_resourceHandle)
return;
}
}

ResourceHandleClient* client = m_resourceHandle->client();

0 comments on commit 10faffa

Please sign in to comment.
You can’t perform that action at this time.