Skip to content

Commit

Permalink
Fix proxy auth configuration
Browse files Browse the repository at this point in the history
Proxy.setAuthentication returns a new proxy object, so the auth
configuration was never used.
  • Loading branch information
juergenhoetzel committed Apr 5, 2012
1 parent 0c68c6c commit b8eff56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/clojure/cemerick/pomegranate/aether.clj
Expand Up @@ -160,9 +160,8 @@
:as proxy} ]
(if (and repo host port)
(let [prx-sel (doto (DefaultProxySelector.)
(.add (doto (Proxy. type host port nil)
(set-authentication proxy))
non-proxy-hosts))
(.add (set-authentication (Proxy. type host port nil) proxy)
non-proxy-hosts))
prx (.getProxy prx-sel repo)]
(.setProxy repo prx))
repo))
Expand Down

0 comments on commit b8eff56

Please sign in to comment.