Re: [pylons-discuss] GET, HEAD, the Guillotine middleware extension

2019-10-21 Thread Michael Merickel
It's worth pointing out that while WSGI apps in general have that issue, webob (and thus pyramid apps) automatically handle this. 1) webob automatically truncates the body on a head request. 2) pyramid automatically configures any view that takes `request_method='GET'` to also take HEAD and

Re: [pylons-discuss] GET, HEAD, the Guillotine middleware extension

2019-10-20 Thread Bert JW Regeer
If your WSGI application for instance does not natively support HEAD requests, because it only handles GET requests, you can use this middleware to do the rewrite, have your WSGI app return the whole response, and Guillotine will then return a body less response to the remote client. Bert >

[pylons-discuss] GET, HEAD, the Guillotine middleware extension

2019-10-18 Thread Jens Troeger
Hello, Today I stumbled upon a somewhat dated Pylons project called Guillotine , a WSGI middleware extension. It seems to have only one purpose: rewrite the