From accc2dc39b3041ff1fd69858732fada80e1b1cd8 Mon Sep 17 00:00:00 2001
From: Mark Hellegers <mark@firedisk.net>
Date: Sun, 6 Mar 2016 16:01:56 +0100
Subject: [PATCH] Check if AuthenticationNeeded aborted the request before
continuing.
---
Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp b/Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp
index 6b574ac..94bdcbf 100644
a
|
b
|
void BUrlProtocolHandler::HeadersReceived(BUrlRequest* /*caller*/)
|
514 | 514 | response.setHTTPHeaderField(headerPair.Name(), headerPair.Value()); |
515 | 515 | } |
516 | 516 | |
517 | | if (statusCode == 401) |
| 517 | if (statusCode == 401) { |
518 | 518 | AuthenticationNeeded(httpRequest, response); |
| 519 | // AuthenticationNeeded may have aborted the request |
| 520 | // so we need to make sure we can continue. |
| 521 | if (!m_resourceHandle) |
| 522 | return; |
| 523 | } |
519 | 524 | } |
520 | 525 | |
521 | 526 | ResourceHandleClient* client = m_resourceHandle->client(); |