[Zope-Checkins] CVS: Zope/ZServer/medusa - http_server.py:1.26.4.3
Andreas Jung
andreas@zope.com
Thu, 20 Sep 2001 09:26:14 -0400
Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv30625/ZServer/medusa
Modified Files:
Tag: Zope-2_4-branch
http_server.py
Log Message:
Re-applied Medusa patch to allow proxy-like HTTP requests
(GET http://hostname:port/ HTTP/1.0)
=== Zope/ZServer/medusa/http_server.py 1.26.4.2 => 1.26.4.3 ===
return ''
-REQUEST = re.compile ('([^ ]+) ([^ ]+)(( HTTP/([0-9.]+))$|$)')
+REQUEST = re.compile ('([^ ]+) (?:[^ :?#]+://[^ ?#/]*)?([^ ]+)(( HTTP/([0-9.]+))$|$)')
def crack_request (r):
m = REQUEST.match (r)