Permalink
Browse files

Fix incorrect use of absolute URL for HTTPS proxy requests

operator precedence...
  • Loading branch information...
1 parent 8f89432 commit 81cd8710b8b6d980927e934ebe17a3c2cdf98835 @ksperling ksperling committed Jun 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)
begin
timeout(@send_timeout, SendTimeoutError) do
set_header(req)

0 comments on commit 81cd871

Please sign in to comment.