summaryrefslogtreecommitdiff
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
commit3ad741f132133bb542a84a01d8e7644fc4b51e4c (patch)
treea7a1d5d3373310698be2624aa18aeca12e316b80
parent02f848f9a48129aca2b372a06a85da0e6c687923 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--lib/xmlrpc/server.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 585fa25579..89017b624d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/lib/xmlrpc/server.rb b/lib/xmlrpc/server.rb
index f37f1084c2..785880d301 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?