diff options
| author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-04 08:57:11 +0000 |
|---|---|---|
| committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-04 08:57:11 +0000 |
| commit | ebe8f5a0757bbe2e272ff57276a2d902107566d7 (patch) | |
| tree | 53945ffb7e022f9171e0b46fc55aa62d43c75934 /lib/soap/rpc | |
| parent | f0ab31d9fcbb63197e3c2181c64e9f2388fae11f (diff) | |
| download | ruby-ebe8f5a0757bbe2e272ff57276a2d902107566d7.tar.gz ruby-ebe8f5a0757bbe2e272ff57276a2d902107566d7.tar.xz ruby-ebe8f5a0757bbe2e272ff57276a2d902107566d7.zip | |
* lib/soap/netHttpClient.rb: follow http-access2. hosts which matches
ENV['no_proxy'] or ENV['NO_PROXY'] is not proxyed.
- [,:] separated. ("ruby-lang.org:rubyist.net")
- no regexp. (give "ruby-lang.org", not "*.ruby-lang.org")
- if you want specify hot by IP address, give full address.
("192.168.1.1, 192.168.1.2")
* lib/soap/rpc/cgistub.rb: return "Status: XXX MMM" line.
* test/runner.rb: give testsuite name.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap/rpc')
| -rw-r--r-- | lib/soap/rpc/cgistub.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/soap/rpc/cgistub.rb b/lib/soap/rpc/cgistub.rb index fee347403..e89314d13 100644 --- a/lib/soap/rpc/cgistub.rb +++ b/lib/soap/rpc/cgistub.rb @@ -172,6 +172,7 @@ private log(INFO) { "Received a request from '#{ @remote_user }@#{ @remote_host }'." } # SOAP request parsing. @request = SOAPRequest.new.init + @response['Status'] = 200 req_charset = @request.charset req_string = @request.dump log(DEBUG) { "XML Request: #{req_string}" } @@ -185,14 +186,14 @@ private @response['content-type'] = @mediatype end if is_fault - @response.status = WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR + @response['Status'] = 500 end @response.body = res_string rescue Exception res_string = create_fault_response($!) @response['Cache-Control'] = 'private' @response['content-type'] = @mediatype - @response.status = WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR + @response['Status'] = 500 ensure buf = '' @response.send_response(buf) |
