Permalink
Browse files

Merge pull request #54 from salidux/master

Add proxy authentication
  • Loading branch information...
2 parents b2b1e7f + d231634 commit a9efec169a86299629cce7a414590d5055257086 @ambethia committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/recaptcha/verify.rb
View
@@ -19,7 +19,7 @@ def verify_recaptcha(options = {})
recaptcha = nil
if(Recaptcha.configuration.proxy)
proxy_server = URI.parse(Recaptcha.configuration.proxy)
- http = Net::HTTP::Proxy(proxy_server.host, proxy_server.port)
+ http = Net::HTTP::Proxy(proxy_server.host, proxy_server.port, proxy_server.user, proxy_server.password)
else
http = Net::HTTP
end

0 comments on commit a9efec1

Please sign in to comment.