diff options
author | defanor <defanor@uberspace.net> | 2017-12-06 08:32:37 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-12-06 08:32:37 +0300 |
commit | b075319adfe2b12fe81c5a4f8c5257e99e649a54 (patch) | |
tree | b06bf5548de6c8a7a134e6898854efc9325542f7 | |
parent | 6b2677bd59b082096149c1581738eb749537f589 (diff) |
Run curl with --compressed by default
Otherwise it fails on pages that are only available with compression.
-rw-r--r-- | Pancake/Configuration.hs | 2 | ||||
-rw-r--r-- | README | 2 |
2 files changed, 2 insertions, 2 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}\"") @@ -91,7 +91,7 @@ directory, and would look approximately like this:: commands: gopher: torify curl "${URI}" ssh: scp "${URI_REGNAME}:${URI_PATH}" /dev/stdout - defaultCommand: ! 'curl -4 -L "${URI}" -w " + defaultCommand: ! 'curl --compressed -4 -L "${URI}" -w " -pancake- |