From 1e46a6ca512dccefc3a9adb0c3168e95763681c9 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Thu, 16 Aug 2001 02:48:37 +0000 Subject: [PATCH] bug 95044, Cookies set on 401 are not sent back when auth is requested, r/sr=darin,rpotts git-svn-id: svn://10.0.0.236/trunk@101168 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp b/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp index 288bfd2548a..8c6877ac8e3 100644 --- a/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -1137,12 +1137,18 @@ nsHttpChannel::ProcessAuthentication(PRUint32 httpStatus) mPrevTransaction = mTransaction; mTransaction = nsnull; + // toggle mIsPending to allow nsIHttpNotify implementations to modify + // the request headers (bug 95044). + mIsPending = PR_FALSE; + // notify nsIHttpNotify implementations.. the server response could // have included cookies that must be sent with this authentication // attempt (bug 84794). rv = nsHttpHandler::get()->OnModifyRequest(this); NS_ASSERTION(NS_SUCCEEDED(rv), "OnModifyRequest failed"); + mIsPending = PR_TRUE; + // and create a new one... rv = SetupTransaction(); if (NS_FAILED(rv)) return rv;