Re: httpd: don't send error body with HEAD method

2014-11-26 Thread Bertrand Janin
Bertrand Janin wrote : Philip Guenther wrote : On Mon, Nov 24, 2014 at 11:24 AM, Florian Obser flor...@openbsd.org wrote: ... Since we are probably not supposed to send a Content-Type header I think it makes sense to duplicate the httpmsg generating code in this case; If a GET

Re: httpd: don't send error body with HEAD method

2014-11-24 Thread Bertrand Janin
Florian Obser wrote : On Sun, Nov 23, 2014 at 08:15:47PM -0500, Bertrand Janin wrote: Hi, This patch updates server_abort_http() to only send the body of default http error if the method is not HEAD. I first noticed that with curl -v -I which complains about the excess data: *

Re: httpd: don't send error body with HEAD method

2014-11-24 Thread Philip Guenther
On Mon, Nov 24, 2014 at 11:24 AM, Florian Obser flor...@openbsd.org wrote: ... Since we are probably not supposed to send a Content-Type header I think it makes sense to duplicate the httpmsg generating code in this case; If a GET of that resource would have a Content-Type, then the HEAD of it