summaryrefslogtreecommitdiff
path: root/Pancake/Configuration.hs
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-12-06 08:32:37 +0300
committerdefanor <defanor@uberspace.net>2017-12-06 08:32:37 +0300
commitb075319adfe2b12fe81c5a4f8c5257e99e649a54 (patch)
treeb06bf5548de6c8a7a134e6898854efc9325542f7 /Pancake/Configuration.hs
parent6b2677bd59b082096149c1581738eb749537f589 (diff)
Run curl with --compressed by default
Otherwise it fails on pages that are only available with compression.
Diffstat (limited to 'Pancake/Configuration.hs')
-rw-r--r--Pancake/Configuration.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Pancake/Configuration.hs b/Pancake/Configuration.hs
index 477dee1..7c537bc 100644
--- a/Pancake/Configuration.hs
+++ b/Pancake/Configuration.hs
@@ -83,7 +83,7 @@ instance Default Config where
++ " && echo -e '\n-pancake-'")
, ("gopher", "curl \"${URI}\""
++ " -w \"\n-pancake-\n\"")]
- , defaultCommand = "curl -4 -L \"${URI}\""
+ , defaultCommand = "curl --compressed -4 -L \"${URI}\""
++ " -w \"\n-pancake-\nuri: %{url_effective}\ntype: %{content_type}\n\""
, externalViewers = M.fromList $
map (flip (,) "emacsclient -n \"${FILE}\"")