add missing case
and fix name shadowing warning
This commit is contained in:
parent
418e842d93
commit
fe49747fc8
1 changed files with 4 additions and 2 deletions
|
@ -287,8 +287,8 @@ getUrlInfo url uo = case parseURIRelaxed url of
|
||||||
_ | isftp && isJust len -> good
|
_ | isftp && isJust len -> good
|
||||||
_ -> return dne
|
_ -> return dne
|
||||||
|
|
||||||
existscurlrestricted r u url defport = existscurl u
|
existscurlrestricted r u url' defport = existscurl u
|
||||||
=<< curlRestrictedParams r u defport (basecurlparams url)
|
=<< curlRestrictedParams r u defport (basecurlparams url')
|
||||||
|
|
||||||
existsfile u = do
|
existsfile u = do
|
||||||
let f = unEscapeString (uriPath u)
|
let f = unEscapeString (uriPath u)
|
||||||
|
@ -314,6 +314,7 @@ getUrlInfo url uo = case parseURIRelaxed url of
|
||||||
existscurlrestricted r u' url' ftpport
|
existscurlrestricted r u' url' ftpport
|
||||||
_ -> return dne
|
_ -> return dne
|
||||||
Nothing -> return dne
|
Nothing -> return dne
|
||||||
|
followredir _ _ = return dne
|
||||||
|
|
||||||
-- Parse eg: attachment; filename="fname.ext"
|
-- Parse eg: attachment; filename="fname.ext"
|
||||||
-- per RFC 2616
|
-- per RFC 2616
|
||||||
|
@ -492,6 +493,7 @@ download' noerror meterupdate url file uo =
|
||||||
downloadcurlrestricted r u' url' ftpport
|
downloadcurlrestricted r u' url' ftpport
|
||||||
_ -> throwIO ex
|
_ -> throwIO ex
|
||||||
Nothing -> throwIO ex
|
Nothing -> throwIO ex
|
||||||
|
followredir _ ex = throwIO ex
|
||||||
|
|
||||||
{- Sinks a Response's body to a file. The file can either be opened in
|
{- Sinks a Response's body to a file. The file can either be opened in
|
||||||
- WriteMode or AppendMode. Updates the meter as data is received.
|
- WriteMode or AppendMode. Updates the meter as data is received.
|
||||||
|
|
Loading…
Reference in a new issue