From b6f1b4f121f0b0984c135f99ee025523b881d69b Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Tue, 6 May 2003 20:43:20 +0000 Subject: [PATCH] fixes bug 199546 "forum message wants to save to disk as messages.php" r=dougt sr=bz a=asa (checking in on closed tree per request from asa) --- netwerk/protocol/http/src/nsHttpChannel.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/netwerk/protocol/http/src/nsHttpChannel.cpp b/netwerk/protocol/http/src/nsHttpChannel.cpp index 906abbe3f8c..1852ee58d5b 100644 --- a/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -1731,12 +1731,8 @@ nsHttpChannel::ProcessRedirection(PRUint32 redirectType) rv = newChannel->AsyncOpen(mListener, mListenerContext); if (NS_FAILED(rv)) return rv; - // set redirect status - mStatus = NS_BINDING_REDIRECTED; - - // close down this transaction (null if processing a cached redirect) - if (mTransaction) - gHttpHandler->CancelTransaction(mTransaction, NS_BINDING_REDIRECTED); + // close down this channel + Cancel(NS_BINDING_REDIRECTED); // disconnect from our listener mListener = 0; @@ -3177,7 +3173,7 @@ nsHttpChannel::OnDataAvailable(nsIRequest *request, nsISupports *ctxt, return rv; } - return NS_BASE_STREAM_CLOSED; + return NS_ERROR_ABORT; } //-----------------------------------------------------------------------------