Browse files

Fix proxy auth configuration

Proxy.setAuthentication returns a new proxy object, so the auth
configuration was never used.
  • Loading branch information...
1 parent 0c68c6c commit b8eff5676e4dcac7a9fc7da7dfdb5982b5a70071 @juergenhoetzel committed Apr 5, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/clojure/cemerick/pomegranate/aether.clj
View
5 src/main/clojure/cemerick/pomegranate/aether.clj
@@ -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))

0 comments on commit b8eff56

Please sign in to comment.