aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-04-18 18:12:10 +0800
committerChristian Persch <chpe@src.gnome.org>2004-04-18 18:12:10 +0800
commit9bdc474dcf39663bf28d5d7458d23aa71345a936 (patch)
tree2e81ce7df65b2ac82e5aff5110ba3476c7885667 /embed
parent196e2ef0e21d62be54de74a66b5321ce12036efd (diff)
downloadgsoc2013-epiphany-9bdc474dcf39663bf28d5d7458d23aa71345a936.tar
gsoc2013-epiphany-9bdc474dcf39663bf28d5d7458d23aa71345a936.tar.gz
gsoc2013-epiphany-9bdc474dcf39663bf28d5d7458d23aa71345a936.tar.bz2
gsoc2013-epiphany-9bdc474dcf39663bf28d5d7458d23aa71345a936.tar.lz
gsoc2013-epiphany-9bdc474dcf39663bf28d5d7458d23aa71345a936.tar.xz
gsoc2013-epiphany-9bdc474dcf39663bf28d5d7458d23aa71345a936.tar.zst
gsoc2013-epiphany-9bdc474dcf39663bf28d5d7458d23aa71345a936.zip
Don't gunzip downloads (backported from HEAD).
2004-04-18 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: Don't gunzip downloads (backported from HEAD).
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/MozDownload.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index 571a937d0..a7b3660d0 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -485,6 +485,11 @@ nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceURI
NS_ENSURE_SUCCESS (rv, rv);
PRInt32 flags = nsIWebBrowserPersist::PERSIST_FLAGS_REPLACE_EXISTING_FILES;
+
+ if (!isHTML)
+ {
+ flags |= nsIWebBrowserPersist::PERSIST_FLAGS_NO_CONVERSION;
+ }
if (ephy_flags & EMBED_PERSIST_COPY_PAGE)
{
flags |= nsIWebBrowserPersist::PERSIST_FLAGS_FROM_CACHE;