SVN: r25574 - trunk/quixote

David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Thu, 11 Nov 2004 11:57:37 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: dbinger
Date: 2004-11-11 10:38:44 -0500 (Thu, 11 Nov 2004)
New Revision: 25574

Modified:
   trunk/quixote/http_request.py
Log:
Don't fail when the value of CONTENT_LENGTH is "".


Modified: trunk/quixote/http_request.py
===================================================================
--- trunk/quixote/http_request.py	2004-11-11 15:18:24 UTC (rev 25573)
+++ trunk/quixote/http_request.py	2004-11-11 15:38:44 UTC (rev 25574)
@@ -166,7 +166,7 @@
         query = self.get_query()
         if query:
             self.form.update(parse_query(query))
-        length = self.environ.get('CONTENT_LENGTH', 0)
+        length = self.environ.get('CONTENT_LENGTH') or "0"
         try:
             length = int(length)
         except ValueError: