diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 78333c42954..4124087ed33 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -2539,7 +2539,8 @@ NS_IMETHODIMP nsDocShell::DoURILoad(nsIURI* aURI, nsIURI* aReferrerURI, // right now, this is only done for http channels..... if(aPostData) { - httpChannel->SetRequestMethod(HM_POST); + nsCOMPtr method = NS_NewAtom ("POST"); + httpChannel->SetRequestMethod(method); httpChannel->SetUploadStream(aPostData); } // Set the referrer explicitly diff --git a/mozilla/mailnews/absync/src/nsAbSyncPostEngine.cpp b/mozilla/mailnews/absync/src/nsAbSyncPostEngine.cpp index 75661f4d559..a9755ae4ea5 100644 --- a/mozilla/mailnews/absync/src/nsAbSyncPostEngine.cpp +++ b/mozilla/mailnews/absync/src/nsAbSyncPostEngine.cpp @@ -319,7 +319,9 @@ nsAbSyncPostEngine::FireURLRequest(nsIURI *aURL, nsPostCompletionCallback cb, if (!httpChannel) return NS_ERROR_FAILURE; - httpChannel->SetRequestMethod(HM_POST); + nsCOMPtr method = NS_NewAtom ("POST"); + + httpChannel->SetRequestMethod(method); httpChannel->SetUploadStream(postStream); **/ diff --git a/mozilla/xpfe/components/bookmarks/src/nsBookmarksService.cpp b/mozilla/xpfe/components/bookmarks/src/nsBookmarksService.cpp index fd3292a0597..4b8bc516562 100644 --- a/mozilla/xpfe/components/bookmarks/src/nsBookmarksService.cpp +++ b/mozilla/xpfe/components/bookmarks/src/nsBookmarksService.cpp @@ -2239,8 +2239,8 @@ nsBookmarksService::FireTimer(nsITimer* aTimer, void* aClosure) { bmks->htmlSize = 0; -// httpChannel->SetRequestMethod(HM_GET); - httpChannel->SetRequestMethod(HM_HEAD); + nsCOMPtr method = NS_NewAtom ("HEAD"); + httpChannel->SetRequestMethod(method); if (NS_SUCCEEDED(rv = channel->AsyncRead(bmks, nsnull))) { bmks->busySchedule = TRUE; diff --git a/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp b/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp index 31d3c66cf3a..11e7702234c 100755 --- a/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp +++ b/mozilla/xpfe/components/search/src/nsInternetSearchService.cpp @@ -3068,7 +3068,8 @@ InternetSearchDataSource::DoSearch(nsIRDFResource *source, nsIRDFResource *engin nsCOMPtr httpChannel = do_QueryInterface(channel); if (httpChannel) { - httpChannel->SetRequestMethod(HM_POST); + nsCOMPtr method = NS_NewAtom ("POST"); + httpChannel->SetRequestMethod(method); // construct post data to send nsAutoString postStr;