summaryrefslogtreecommitdiff
path: root/Remote/Web.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-04-22 01:13:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-04-22 01:13:09 -0400
commit84ac8c58db30637db4fb88566530b6293f12dab0 (patch)
tree72b7d1bae98ee22b34d722554069b68eea47513f /Remote/Web.hs
parent5fbe83f595bf5957376544ee83b3cc46cc2323ed (diff)
Add annex.httpheaders and annex.httpheader-command config settings
Allow custom headers to be sent with all HTTP requests. (Requested by the Internet Archive)
Diffstat (limited to 'Remote/Web.hs')
-rw-r--r--Remote/Web.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Remote/Web.hs b/Remote/Web.hs
index 81e6ca321..5fc592326 100644
--- a/Remote/Web.hs
+++ b/Remote/Web.hs
@@ -83,4 +83,5 @@ checkKey key = do
checkKey' :: Key -> [URLString] -> Annex Bool
checkKey' key us = untilTrue us $ \u -> do
showAction $ "checking " ++ u
- liftIO $ Url.check u (keySize key)
+ headers <- getHttpHeaders
+ liftIO $ Url.check u headers (keySize key)