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

Changeset 1883

Show
Ignore:
Timestamp:
07/15/07 12:39:02 (1 year ago)
Author:
nahi
Message:
  • let soap4r http clients (SOAP::RPC::Driver and WSDL/XSD importers) do not check soap_use_proxy environment variable and use only http_proxy/HTTP_PROXY and no_proxy/NO_PROXY envvars for proxy configuration. no need to set 'soap_use_proxy=on' envvar anymore. But to avoid proxy injection problem, when a library is used on CGI environment (with checking REQUEST_METHOD envvar existence), soap4r http clients use cgi_http_proxy/CGI_HTTP_PROXY envvar instead of http_proxy/HTTP_PROXY. closes #378.
Files:

Legend:

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

    r1864 r1883  
    120120  end 
    121121 
    122   use_proxy = getenv('soap_use_proxy') == 'on' 
    123   HTTP_PROXY = use_proxy ? getenv('http_proxy') : nil 
    124   NO_PROXY = use_proxy ? getenv('no_proxy') : nil 
     122  is_cgi = !getenv('request_method').nil? 
     123  HTTP_PROXY = is_cgi ? getenv('cgi_http_proxy') : getenv('http_proxy') 
     124  NO_PROXY = getenv('no_proxy') 
    125125end 
    126126