Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1703

Show
Ignore:
Timestamp:
08/28/06 22:30:23 (2 years ago)
Author:
nahi
Message:

net/http + NO_PROXY did not work. Thanks to Andi. closes #236.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/netHttpClient.rb

    r1520 r1703  
    154154      return true 
    155155    end 
    156     if @no_proxy 
    157       @no_proxy.scan(/([^:,]*)(?::(\d+))?/) do |host, port| 
    158         if /(\A|\.)#{Regexp.quote(host)}\z/i =~ uri.host && 
    159             (!port || uri.port == port.to_i) 
    160           return true 
    161         end 
     156    unless @no_proxy 
     157      return false 
     158    end 
     159    @no_proxy.scan(/([^:,]+)(?::(\d+))?/) do |host, port| 
     160      if /(\A|\.)#{Regexp.quote(host)}\z/i =~ uri.host && 
     161          (!port || uri.port == port.to_i) 
     162        return true 
    162163      end 
    163     else 
    164       false 
    165164    end 
     165    false 
    166166  end 
    167167