[Zope-dev] Medusa Patch Lost
Toby Dickenson
tdickenson@geminidataloggers.com
Thu, 20 Sep 2001 14:12:10 +0100
A zope-specific patch to medusa seems to have got accidentally lost
between 2.3.x and 2.4. The patch below allows Zope to handle http
requests as if it was a proxy, ie:
GET http://servername/x/y/z HTTP/1.0
in addition to the more normal mode as if it was an origin server:
GET /x/y/z HTTP/1.0
(there is an rfc for this, but I forget the number :-(
(With the Collector down, I hope this is the best place for
uncontroversial patches. Is anyone from DC looking out for them?)
diff -c -r1.1.1.6 -r1.2
*** http_server.py 10 Sep 2001 14:55:08 -0000 1.1.1.6
--- http_server.py 20 Sep 2001 12:43:53 -0000 1.2
***************
*** 713,719 ****
return m
return ''
! REQUEST =3D re.compile ('([^ ]+) ([^ ]+)(( HTTP/([0-9.]+))$|$)')
def crack_request (r):
m =3D REQUEST.match (r)
--- 713,719 ----
return m
return ''
! REQUEST =3D re.compile('([^ ]+) (?:[^ :?#]+://[^ ?#/]*)?([^ ]+)((
HTTP/([0-9.]+))$|$)')
def crack_request (r):
m =3D REQUEST.match (r)
Toby Dickenson
tdickenson@geminidataloggers.com