Bug 1410257 - make non-connection-based connections restartable; r=mayhemer
authorLiang-Heng Chen <xeonchen@gmail.com>
Thu, 26 Oct 2017 14:23:05 +0800
changeset 688134 2f34c043682871787a4f710bd162bd9c843dc011
parent 688133 f8e5f681ccbbda44dc4bcef811d2fa0ace680642
child 688135 13a0ffe2798fd1c9beca19f70f2baf9a8e992cb5
child 688211 fc813bf68348121aeac663dd48a23221c4116dbb
push id86669
push userhikezoe@mozilla.com
push dateSat, 28 Oct 2017 10:13:18 +0000
reviewersmayhemer
bugs1410257
milestone58.0a1
Bug 1410257 - make non-connection-based connections restartable; r=mayhemer MozReview-Commit-ID: 1hEk7mT6mzZ
netwerk/protocol/http/nsHttpChannelAuthProvider.cpp
--- a/netwerk/protocol/http/nsHttpChannelAuthProvider.cpp
+++ b/netwerk/protocol/http/nsHttpChannelAuthProvider.cpp
@@ -830,17 +830,17 @@ nsHttpChannelAuthProvider::GetCredential
     }
 
     mConnectionBased = !!(authFlags & nsIHttpAuthenticator::CONNECTION_BASED);
 
     // It's legal if the peer closes the connection after the first 401/7.
     // Making the connection sticky will prevent its restart giving the user
     // a 'network reset' error every time.  Hence, we mark the connection
     // as restartable.
-    mAuthChannel->ConnectionRestartable(mConnectionBased && !authAtProgress);
+    mAuthChannel->ConnectionRestartable(!authAtProgress);
 
     if (identityInvalid) {
         if (entry) {
             if (ident->Equals(entry->Identity())) {
                 if (!identFromURI) {
                     LOG(("  clearing bad auth cache entry\n"));
                     // ok, we've already tried this user identity, so clear the
                     // corresponding entry from the auth cache.