Patch by christophe.fergeau@laposte.net, r=bbaetz, sr=beng
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-01-12 23:56:42 +00:00
Родитель e99ddaaeee
Коммит dba349965d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2179,6 +2179,7 @@ nsHttpChannel::SetUploadStream(nsIInputStream *stream, const char* contentType,
// and so we select POST as the request method if contentType and // and so we select POST as the request method if contentType and
// contentLength are unspecified. // contentLength are unspecified.
mUploadStream = stream;
if (mUploadStream) { if (mUploadStream) {
if (contentType) { if (contentType) {
if (contentLength < 0) { if (contentLength < 0) {
@ -2203,7 +2204,6 @@ nsHttpChannel::SetUploadStream(nsIInputStream *stream, const char* contentType,
mUploadStreamHasHeaders = PR_FALSE; mUploadStreamHasHeaders = PR_FALSE;
mRequestHead.SetMethod(nsHttp::Get); // revert to GET request mRequestHead.SetMethod(nsHttp::Get); // revert to GET request
} }
mUploadStream = stream;
return NS_OK; return NS_OK;
} }