[Zope-Checkins] CVS: Zope2 - http_server.py:1.26.4.2

shane@digicool.com shane@digicool.com
Mon, 2 Jul 2001 15:45:22 -0400 (EDT)


Update of /cvs-repository/Zope2/ZServer/medusa
In directory korak.digicool.com:/tmp/cvs-serv2837

Modified Files:
      Tag: Zope-2_4-branch
	http_server.py 
Log Message:
Corrected handling of invalid requests.



--- Updated File http_server.py in package Zope2 --
--- http_server.py	2001/07/02 13:49:34	1.26.4.1
+++ http_server.py	2001/07/02 19:45:22	1.26.4.2
@@ -717,7 +717,7 @@
 
 def crack_request (r):
     m = REQUEST.match (r)
-    if m.end() == len(r):
+    if m is not None and m.end() == len(r):
         if m.group(3):
             version = m.group(5)
         else: