From b075319adfe2b12fe81c5a4f8c5257e99e649a54 Mon Sep 17 00:00:00 2001 From: defanor Date: Wed, 6 Dec 2017 08:32:37 +0300 Subject: Run curl with --compressed by default Otherwise it fails on pages that are only available with compression. --- Pancake/Configuration.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Pancake/Configuration.hs') 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}\"") -- cgit v1.2.3