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
Родитель c78ed09758
Коммит 8499071eec
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
// 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;
}