Skip to content

Commit

Permalink
Treat empty HTTP_PROXY as non-existent (closes #66)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3dave committed Oct 27, 2017
1 parent 45db7ec commit e66f12c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Network/HTTP/Proxy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ fetchProxy warnIfIllformed = do
-- | @parseProxy str@ translates a proxy server string into a @Proxy@ value;
-- returns @Nothing@ if not well-formed.
parseProxy :: String -> Maybe Proxy
parseProxy "" = Nothing
parseProxy str = join
. fmap uri2proxy
$ parseHttpURI str
Expand Down

0 comments on commit e66f12c

Please sign in to comment.