quirkey / vegas

Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps.
http://code.quirkey.com/vegas
MIT License
183 stars 24 forks source link

Ingnoring proxy #5

Closed plukevdh closed 14 years ago

plukevdh commented 14 years ago

Hey, I ran into a situation where when I run this locally, I get a 403 Forbidden due to a proxy on our networks. This is an issue coming from within the open-uri library and it is fixed pretty simply by ignoring any [http|https]_proxy settings in the system env with the :proxy => nil option.

Quick fix, just makes it more accessible to those running inside a network firewall.

quirkey commented 14 years ago

Do you want to actually expose this as an option for the command line instead of just in the initializer? That way you could switch it out at runtime.

plukevdh commented 14 years ago

You mean creating someting like a --no-proxy option? Yeah, thats actually what I did in my code, I guess I forgot to commit that before making the pull request. Will create another commit.

quirkey commented 14 years ago

Perfect. Pulling - thanks!