diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/xmlrpc/server.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Nov 16 21:22:47 2004 Michael Neumann <[email protected]> + + * lib/xmlrpc/server.rb (CGIServer): fixed bug when client sends + "Content-typ: text/xml; ..." + Tue Nov 16 23:45:07 2004 Yukihiro Matsumoto <[email protected]> * 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? |