mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/xmlrpc/server.rb (CGIServer): fixed bug when client sends "Content-typ: text/xml; ..."
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
02f848f9a4
commit
3ad741f132
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Nov 16 21:22:47 2004 Michael Neumann <mneumann@ruby-lang.org>
|
||||
|
||||
* lib/xmlrpc/server.rb (CGIServer): fixed bug when client sends
|
||||
"Content-typ: text/xml; ..."
|
||||
|
||||
Tue Nov 16 23:45:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* numeric.c (flo_divmod): protect float values from GC by
|
||||
|
|
|
@ -448,7 +448,7 @@ class CGIServer < BasicServer
|
|||
length = ENV['CONTENT_LENGTH'].to_i
|
||||
|
||||
http_error(405, "Method Not Allowed") unless ENV['REQUEST_METHOD'] == "POST"
|
||||
http_error(400, "Bad Request") unless ENV['CONTENT_TYPE'] == "text/xml"
|
||||
http_error(400, "Bad Request") unless parse_content_type(ENV['CONTENT_TYPE']).first == "text/xml"
|
||||
http_error(411, "Length Required") unless length > 0
|
||||
|
||||
# TODO: do we need a call to binmode?
|
||||
|
|
Loading…
Add table
Reference in a new issue