Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix a class of issues where HTTPResponse was not properly namespaced …

…throwing an error when using a proxy and SSL connections from Mechanize.

Eliminates:
/tmp/mech_test/net-http-persistent/lib/net/http/persistent/ssl_reuse.rb:66:in
`connect': uninitialized constant Net::HTTP::Persistent::SSLReuse::HTTPResponse (NameError)
  • Loading branch information...
commit 9f770b4660f1c9c433c1f3b50ba24dd4f1f71cf8 1 parent e154f51
Glenn Rempe authored November 15, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/net/http/persistent/ssl_reuse.rb
4  lib/net/http/persistent/ssl_reuse.rb
@@ -63,7 +63,7 @@ def connect # :nodoc:
63 63
             @socket.writeline "Proxy-Authorization: Basic #{credential}"
64 64
           end
65 65
           @socket.writeline ''
66  
-          HTTPResponse.read_new(@socket).value
  66
+          Net::HTTPResponse.read_new(@socket).value
67 67
         end
68 68
         # Server Name Indication (SNI) RFC 3546
69 69
         s.hostname = @address if s.respond_to? :hostname=
@@ -112,7 +112,7 @@ def connect
112 112
           @socket.writeline "Proxy-Authorization: Basic #{credential}"
113 113
         end
114 114
         @socket.writeline ''
115  
-        HTTPResponse.read_new(@socket).value
  115
+        Net::HTTPResponse.read_new(@socket).value
116 116
       end
117 117
       s.connect
118 118
       if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE

0 notes on commit 9f770b4

Please sign in to comment.
Something went wrong with that request. Please try again.