зеркало из https://github.com/github/ruby.git
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
message for Content-Type check failures. [ruby-core:12163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3c15e9efe3
Коммит
6f8537cf7f
|
@ -1,3 +1,8 @@
|
|||
Wed Oct 25 04:46:53 2007 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
|
||||
message for Content-Type check failures. [ruby-core:12163]
|
||||
|
||||
Wed Oct 25 03:45:08 2007 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type):
|
||||
|
|
|
@ -549,9 +549,9 @@ module XMLRPC
|
|||
ct = parse_content_type(resp["Content-Type"]).first
|
||||
if ct != "text/xml"
|
||||
if ct == "text/html"
|
||||
raise "Wrong content-type: \n#{data}"
|
||||
raise "Wrong content-type (received '#{ct}' but expected 'text/xml'): \n#{data}"
|
||||
else
|
||||
raise "Wrong content-type"
|
||||
raise "Wrong content-type (received '#{ct}' but expected 'text/xml')"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче