Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

proxy support for recaptcha

#12

Hi, thank you for creating such a great plug-in, I love it.

I have added proxy environment support to your plug-in, so that recaptcha works when you're behind a proxy. Here are the relevant lines:

lib/recaptcha.rb line 56

    begin
      proxyargs = []
      if (proxy = ENV['http_proxy']) then
        uri = URI.parse(proxy)
        proxyargs << uri.host << uri.port
        proxyargs << uri.userinfo.split(/:/) if uri.userinfo
      end
      recaptcha = Net::HTTP::Proxy(*proxyargs).post_form URI.
        parse("http://#{RECAPTCHA_VERIFY_SERVER}/verify"), {
        :privatekey => private_key,

Thanks again

James

Reported by James Ponder · May 7th, 2009 @ 11:22 AM

State: new
Milestone: none
Assigned to: Jason L Perry Jason L Perry

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.