Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@grempe-thrillcall grempe-thrillcall authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/net/http/persistent/ssl_reuse.rb
View
4 lib/net/http/persistent/ssl_reuse.rb
@@ -63,7 +63,7 @@ def connect # :nodoc:
@socket.writeline "Proxy-Authorization: Basic #{credential}"
end
@socket.writeline ''
- HTTPResponse.read_new(@socket).value
+ Net::HTTPResponse.read_new(@socket).value
end
# Server Name Indication (SNI) RFC 3546
s.hostname = @address if s.respond_to? :hostname=
@@ -112,7 +112,7 @@ def connect
@socket.writeline "Proxy-Authorization: Basic #{credential}"
end
@socket.writeline ''
- HTTPResponse.read_new(@socket).value
+ Net::HTTPResponse.read_new(@socket).value
end
s.connect
if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
Please sign in to comment.
Something went wrong with that request. Please try again.