[Rubygems-developers] Patch that fixes Proxy authorization problem (407)

Mauricio Fernandez mfp at acm.org
Thu Dec 15 18:03:42 EST 2005


On Thu, Dec 15, 2005 at 05:41:37PM -0500, Austin Ziegler wrote:
> > > > So I suggest redo a little my patch and use following algorithm
> > > >   http_proxy = options() || ENV['HTTP_PROXY']
> > > >   if http_proxy contains login and lassword
> > > >     proxy_user = extract login from http_proxy
> > > >      proxy_password = extract password from http_proxy
> > > >   else
> > > >     proxy_user = HTTP['http_proxy_user']
> > > >     proxy_password = ENV['http_proxy_pass']
> > > >   end
> > >
> > > I'm going to request a unit or functional test for this logic.  Thanks.
> 
> Might I suggest that this won't work on Windows?
> 
> irb(main):001:0> ENV['path']
> => "C:\\Program Files\\ActiveState Komodo 3.5\\..."
> irb(main):002:0> ENV['PATH']
> => "C:\\Program Files\\ActiveState Komodo 3.5\\..."
> irb(main):003:0>
> 
> I think another solution is in order.

He's not discriminating based on capitalization, is he?
If that's not a problem, why won't the above work on win32?

-- 
Mauricio Fernandez


More information about the Rubygems-developers mailing list