Permalink
Browse files

try to fix the ssl error

  • Loading branch information...
1 parent 8486768 commit 4a4203e62d76495cd35d7774296e502d13376254 @rociiu rociiu committed Jul 5, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 config/initializers/ssl_fix.rb
@@ -0,0 +1,10 @@
+require 'net/http'
+require 'openssl'
+
+class Net::HTTP alias_method :origConnect, :connect
+ def connect
+ @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ origConnect
+ end
+end
+

0 comments on commit 4a4203e

Please sign in to comment.