Permalink
Browse files

Support Proxy-Authorization: Basic for CONNECT proxies

  • Loading branch information...
ConradIrwin committed Jun 11, 2013
1 parent 42de69f commit 210d5eb1b3554e96c2907303cdc0a2cedfc8bb09
Showing with 2 additions and 2 deletions.
  1. +1 −1 em-http-request.gemspec
  2. +1 −1 lib/em-http/http_connection.rb
View
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.add_dependency "addressable", ">= 2.2.3"
s.add_dependency "http_parser.rb", ">= 0.5.3"
s.add_dependency "em-socksify"
- s.add_dependency "em-connectify"
+ s.add_dependency "em-connectify", ">= 0.2"
s.add_dependency "cookiejar"
s.add_development_dependency "rspec"
@@ -152,7 +152,7 @@ def connection_completed
if @connopts.proxy && @connopts.proxy[:type] == :socks5
socksify(client.req.uri.host, client.req.uri.port, *@connopts.proxy[:authorization]) { start }
elsif @connopts.proxy && @connopts.proxy[:type] == :connect
- connectify(client.req.uri.host, client.req.uri.port) { start }
+ connectify(client.req.uri.host, client.req.uri.port, *@connopts.proxy[:authorization]) { start }
else
start
end

0 comments on commit 210d5eb

Please sign in to comment.