diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 7b20216d10f..4c9283af948 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -2525,7 +2525,7 @@ NS_IMETHODIMP nsDocShell::DoURILoad(nsIURI* aURI, nsIURI* aReferrerURI, if(aPostData) { httpChannel->SetRequestMethod(HM_POST); - httpChannel->SetPostDataStream(aPostData); + httpChannel->SetUploadStream(aPostData); } // Set the referrer explicitly if(aReferrerURI) // Referrer is currenly only set for link clicks here. diff --git a/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp b/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp index 9941dc5c0f8..44a5b47c424 100755 --- a/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp +++ b/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp @@ -2946,7 +2946,7 @@ InternetSearchDataSource::DoSearch(nsIRDFResource *source, nsIRDFResource *engin if (NS_SUCCEEDED(rv = NS_NewPostDataStream(getter_AddRefs(postDataStream), PR_FALSE, nsCAutoString(postStr), 0))) { - httpChannel->SetPostDataStream(postDataStream); + httpChannel->SetUploadStream(postDataStream); } } }