Zope/Medusa: Response to CONNECT method

Ng Pheng Siong ngps at netmemetic.com
Tue Dec 31 10:40:57 EST 2002


According to Klaus Alexander Seistrup  <kas2002dec at magnetic-ink.dk>:
> Zope responds with a "404: Not Found".  Howeever, I would like Zope to
> return a "405: Method Not Allowed" instead.  I have tried to change a
> few lines in ZPublisher/BaseRequest.py, but to no avail.  Does anyone
> here know where I should change what in order to obtain the desired
> response?

ngps at vista:~/pkg/zope260/ZServer/medusa$ egrep 404 *.py
default_handler.py:                request.error (404) # Not Found 
default_handler.py:            request.error (404) # Not Found
default_handler.py:            request.error (404)
default_handler.py:            request.error (404)
http_server.py:            404: "Not Found",
http_server.py:            r.error (404)
script_handler.py:            request.error (404)
status_handler.py:                request.error (404)
unix_user_handler.py:                request.error (404)
unix_user_handler.py:                request.error (404)

Somewhere in default_handler.py, probably.


-- 
Ng Pheng Siong <ngps at netmemetic.com> * http://www.netmemetic.com




More information about the Python-list mailing list