Skip to content
Browse files

Merge pull request #168 from ksperling/https-proxy-bug

Fix incorrect use of absolute URL for HTTPS proxy requests
  • Loading branch information...
2 parents aec91c1 + 81cd871 commit 65cb283e8a481a60225effe08d622bc7ba011359 @nahi committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/httpclient/session.rb
2 lib/httpclient/session.rb
@@ -608,7 +608,7 @@ def initialize(client, dest, agent_name, from)
def query(req)
connect if @state == :INIT
# Use absolute URI (not absolute path) iif via proxy AND not HTTPS.
- req.header.request_absolute_uri = !@proxy.nil? and !https?(@dest)
+ req.header.request_absolute_uri = !@proxy.nil? && !https?(@dest)
timeout(@send_timeout, SendTimeoutError) do

0 comments on commit 65cb283

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