[Zope-dev] Medusa Patch Lost
Andreas Jung
Andreas Jung" <andreas@zope.com
Thu, 20 Sep 2001 09:32:08 -0400
Thanks for the hint. I re-applied the patch to the CVS trunk and branch.
Andreas
----- Original Message -----
From: "Toby Dickenson" <tdickenson@devmail.geminidataloggers.co.uk>
To: <zope-dev@zope.org>
Sent: Thursday, September 20, 2001 09:12
Subject: [Zope-dev] Medusa Patch Lost
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 = re.compile ('([^ ]+) ([^ ]+)(( HTTP/([0-9.]+))$|$)')
def crack_request (r):
m = REQUEST.match (r)
--- 713,719 ----
return m
return ''
! REQUEST = re.compile('([^ ]+) (?:[^ :?#]+://[^ ?#/]*)?([^ ]+)((
HTTP/([0-9.]+))$|$)')
def crack_request (r):
m = REQUEST.match (r)
Toby Dickenson
tdickenson@geminidataloggers.com
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )