From 25b34db6611b862f75091f5e6150e36df102b3e9 Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Thu, 26 Apr 2001 18:33:21 +0000 Subject: [PATCH] fix for new http idl git-svn-id: svn://10.0.0.236/branches/HttpConnectionMagic_20010415_BRANCH@93153 18797224-902f-48f8-a5cc-f745e15eee43 --- .../embedding/browser/webBrowser/nsWebBrowserPersist.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mozilla/embedding/browser/webBrowser/nsWebBrowserPersist.cpp b/mozilla/embedding/browser/webBrowser/nsWebBrowserPersist.cpp index 77671b7bc14..09566fe6673 100644 --- a/mozilla/embedding/browser/webBrowser/nsWebBrowserPersist.cpp +++ b/mozilla/embedding/browser/webBrowser/nsWebBrowserPersist.cpp @@ -30,7 +30,7 @@ #include "nsNetUtil.h" #include "nsIFileTransportService.h" -#include "nsIHTTPChannel.h" +#include "nsIHttpChannel.h" #include "nsEscape.h" #include "nsCExternalHandlerService.h" @@ -145,7 +145,7 @@ NS_IMETHODIMP nsWebBrowserPersist::SaveURI(nsIURI *aURI, nsIInputStream *aPostDa // Post data if (aPostData) { - nsCOMPtr httpChannel(do_QueryInterface(inputChannel)); + nsCOMPtr httpChannel(do_QueryInterface(inputChannel)); if (httpChannel) { nsCOMPtr stream(do_QueryInterface(aPostData)); @@ -155,8 +155,6 @@ NS_IMETHODIMP nsWebBrowserPersist::SaveURI(nsIURI *aURI, nsIInputStream *aPostDa stream->Seek(PR_SEEK_SET, 0); // Attach the postdata to the http channel httpChannel->SetUploadStream(aPostData); - nsCOMPtr method = NS_NewAtom("POST"); - httpChannel->SetRequestMethod(method); } } }