add UrlOptions sum type
This commit is contained in:
parent
fdc7200b25
commit
003fc2b7e1
14 changed files with 78 additions and 65 deletions
|
@ -14,7 +14,6 @@ import Types.Remote
|
|||
import qualified Git
|
||||
import qualified Git.Construct
|
||||
import Annex.Content
|
||||
import Config
|
||||
import Config.Cost
|
||||
import Logs.Web
|
||||
import Types.Key
|
||||
|
@ -117,9 +116,8 @@ checkKey' key us = firsthit us (Right False) $ \u -> do
|
|||
return $ Left "quvi support needed for this url"
|
||||
#endif
|
||||
DefaultDownloader -> do
|
||||
(headers, options) <- getHttpHeadersOptions
|
||||
Url.withUserAgent $ catchMsgIO .
|
||||
Url.checkBoth u' headers options (keySize key)
|
||||
Url.withUrlOptions $ catchMsgIO .
|
||||
Url.checkBoth u' (keySize key)
|
||||
where
|
||||
firsthit [] miss _ = return miss
|
||||
firsthit (u:rest) _ a = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue