summaryrefslogtreecommitdiffstats
path: root/lib/xmlrpc
diff options
context:
space:
mode:
authormneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 21:25:50 +0000
committermneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-16 21:25:50 +0000
commitbce9cbf14543e0ba2ba350483d25ded22c7609ec (patch)
treea7a1d5d3373310698be2624aa18aeca12e316b80 /lib/xmlrpc
parentdc8f974da55fea4d0074b5e7adaf97595c09a681 (diff)
downloadruby-bce9cbf14543e0ba2ba350483d25ded22c7609ec.tar.gz
ruby-bce9cbf14543e0ba2ba350483d25ded22c7609ec.tar.xz
ruby-bce9cbf14543e0ba2ba350483d25ded22c7609ec.zip
* lib/xmlrpc/server.rb (CGIServer): fixed bug when client sends "Content-typ: text/xml; ..."
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xmlrpc')
-rw-r--r--lib/xmlrpc/server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xmlrpc/server.rb b/lib/xmlrpc/server.rb
index f37f1084c..785880d30 100644
--- a/lib/xmlrpc/server.rb
+++ b/lib/xmlrpc/server.rb
@@ -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?