fixes bug 173094 "Freeze nsIUploadChannel" r=dougt,timeless sr=rpotts

This commit is contained in:
darin%netscape.com 2006-04-20 03:38:15 +00:00
Родитель 166976edb7
Коммит c45f7a3bba
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1148,7 +1148,7 @@ nsXMLHttpRequest::Send(nsIVariant *aBody)
nsCOMPtr<nsIUploadChannel> uploadChannel(do_QueryInterface(httpChannel));
NS_ASSERTION(uploadChannel, "http must support nsIUploadChannel");
rv = uploadChannel->SetUploadStream(postDataStream, nsnull, -1);
rv = uploadChannel->SetUploadStream(postDataStream, NS_LITERAL_CSTRING(""), -1);
// Reset the method to its original value
if (httpChannel) {
httpChannel->SetRequestMethod(method);