From 7265366ff3826975ae2ac947c6aec38d4a8ecf22 Mon Sep 17 00:00:00 2001 From: "gagan%netscape.com" Date: Sat, 22 Apr 2000 00:40:21 +0000 Subject: [PATCH] Small HTTP api change. git-svn-id: svn://10.0.0.236/trunk@66817 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 2 +- mozilla/xpfe/components/search/src/nsInternetSearchService.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } } }