mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/soap/netHttpClient.rb: use URI::HTTP#request_uri instead of
instance_eval('path_query'). [ruby-list:38575] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a23075a53e
commit
57292a2ab4
2 changed files with 7 additions and 2 deletions
|
@ -68,7 +68,7 @@ class NetHttpClient
|
|||
extra = header.dup
|
||||
extra['User-Agent'] = @agent if @agent
|
||||
res = start(url) { |http|
|
||||
http.post(url.instance_eval('path_query'), req_body, extra)
|
||||
http.post(url.request_uri, req_body, extra)
|
||||
}
|
||||
Response.new(res)
|
||||
end
|
||||
|
@ -78,7 +78,7 @@ class NetHttpClient
|
|||
extra = header.dup
|
||||
extra['User-Agent'] = @agent if @agent
|
||||
res = start(url) { |http|
|
||||
http.get(url.instance_eval('path_query'), extra)
|
||||
http.get(url.request_uri, extra)
|
||||
}
|
||||
res.body
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue