From 8499071eecd9b1cd9d402f56158bdbc6a5118759 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" Date: Sat, 12 Jan 2002 23:56:42 +0000 Subject: [PATCH] Bug 119625 - can't POST forms Patch by christophe.fergeau@laposte.net, r=bbaetz, sr=beng --- netwerk/protocol/http/src/nsHttpChannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/protocol/http/src/nsHttpChannel.cpp b/netwerk/protocol/http/src/nsHttpChannel.cpp index 5f267ea883c..9ab0c895b14 100644 --- a/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -2179,6 +2179,7 @@ nsHttpChannel::SetUploadStream(nsIInputStream *stream, const char* contentType, // and so we select POST as the request method if contentType and // contentLength are unspecified. + mUploadStream = stream; if (mUploadStream) { if (contentType) { if (contentLength < 0) { @@ -2203,7 +2204,6 @@ nsHttpChannel::SetUploadStream(nsIInputStream *stream, const char* contentType, mUploadStreamHasHeaders = PR_FALSE; mRequestHead.SetMethod(nsHttp::Get); // revert to GET request } - mUploadStream = stream; return NS_OK; }