Ticket #10924: 0001-Check-if-AuthenticationNeeded-aborted-the-request-be.patch

File 0001-Check-if-AuthenticationNeeded-aborted-the-request-be.patch, 1.2 KB (added by markh, 8 years ago)
  • Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp

    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*/)  
    514514            response.setHTTPHeaderField(headerPair.Name(), headerPair.Value());
    515515        }
    516516
    517         if (statusCode == 401)
     517        if (statusCode == 401) {
    518518            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        }
    519524    }
    520525
    521526    ResourceHandleClient* client = m_resourceHandle->client();