[Zope-dev] Medusa Patch Lost

2001-09-20 Thread Toby Dickenson

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 -  1.1.1.6
--- http_server.py  20 Sep 2001 12:43:53 -  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
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Medusa Patch Lost

2001-09-20 Thread Andreas Jung

Thanks for the hint. I re-applied the patch to the CVS trunk and branch.

Andreas
- Original Message - 
From: Toby Dickenson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 -  1.1.1.6
--- http_server.py  20 Sep 2001 12:43:53 -  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
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )