remove unused function
This commit is contained in:
parent
895b496490
commit
147aaa1012
1 changed files with 0 additions and 14 deletions
|
@ -161,20 +161,6 @@ headRequest r = r
|
||||||
(requestHeaders r)
|
(requestHeaders r)
|
||||||
}
|
}
|
||||||
|
|
||||||
addUrlOptions :: UrlOptions -> Request -> Request
|
|
||||||
addUrlOptions uo r = r { requestHeaders = requestHeaders r ++ uaheader ++ otherheaders}
|
|
||||||
where
|
|
||||||
uaheader = case userAgent uo of
|
|
||||||
Nothing -> []
|
|
||||||
Just ua -> [(hUserAgent, B8.fromString ua)]
|
|
||||||
otherheaders = map toheader (reqHeaders uo)
|
|
||||||
toheader s =
|
|
||||||
let (h, v) = separate (== ':') s
|
|
||||||
h' = CI.mk (B8.fromString h)
|
|
||||||
in case v of
|
|
||||||
(' ':v') -> (h', B8.fromString v')
|
|
||||||
_ -> (h', B8.fromString v)
|
|
||||||
|
|
||||||
{- Used to download large files, such as the contents of keys.
|
{- Used to download large files, such as the contents of keys.
|
||||||
-
|
-
|
||||||
- Uses wget or curl program for its progress bar. (Wget has a better one,
|
- Uses wget or curl program for its progress bar. (Wget has a better one,
|
||||||
|
|
Loading…
Add table
Reference in a new issue