SVN: r21221 - in trunk/quixote: . server

Andrew Kuchling <akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Thu, 20 Mar 2003 11:02:42 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: akuchlin
Date: 2003-03-20 11:02:41 -0500 (Thu, 20 Mar 2003)
New Revision: 21221

Modified:
   trunk/quixote/CHANGES
   trunk/quixote/server/medusa_http.py
Log:
Convert HTTP headers to title case

Modified: trunk/quixote/server/medusa_http.py
==============================================================================
--- trunk/quixote/server/medusa_http.py	(original)
+++ trunk/quixote/server/medusa_http.py	2003-03-20 11:02:42.000000000 -0500
@@ -95,7 +95,7 @@
             # XXX Medusa's HTTP request is buggy, and only allows unique
             # headers.
             for v in values:
-                request[hdr] = v
+                request[hdr.title()] = v
 
         request.response(qreq.response.status_code)
 

Modified: trunk/quixote/CHANGES
==============================================================================
--- trunk/quixote/CHANGES	(original)
+++ trunk/quixote/CHANGES	2003-03-20 11:02:42.000000000 -0500
@@ -3,6 +3,10 @@
   * Fix generation of temporary filenames in upload.py: filename
     collisions should be impossible now.
 
+  * In medusa_http.py, convert HTTP headers into title case before
+    passing them to Medusa, fixing duplicate Content-length headers.  
+    (Fix by Graham Fawcett.)
+
 
 0.6b5 (13 Mar 2003):