]> gitweb.factorcode.org Git - factor.git/commitdiff
http.client: make no-proxy? to do less work with no proxies.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Mar 2016 20:49:11 +0000 (13:49 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Mar 2016 20:49:11 +0000 (13:49 -0700)
basis/http/client/client.factor

index b7df415195ba10e214b58ba7d4414b2c650d0e51..19ca7c0c9fd9b7b2e127ee14c070daccf83bfc69 100644 (file)
@@ -176,9 +176,9 @@ SYMBOL: redirects
     [ "NO_PROXY" os-env ] unless* ;
 
 : no-proxy? ( request -- ? )
-    url>> host>> "." split
     get-no-proxy-list [
-        "," split [ "." split no-proxy-match? ] with any?
+       [ url>> host>> "." split ] dip "," split
+       [ "." split no-proxy-match? ] with any?
     ] [ drop f ] if* ;
 
 : check-proxy ( request proxy -- request' )