Hi,

I see that the upcoming fossil 2.3 release coming up soon, so there
may be other (higher) priorities and interests right now, but I post
this patch here and now anyway, for the record.


Playing around with the "fossil http" command, I found a bug in the
behavior for the HTTP HEAD method.

https://tools.ietf.org/html/rfc7231#section-4.3.2
The HEAD method is identical to GET except that the server MUST NOT
send a message body in the response

Anyhow, both commands below return both HTTP Header and Body.

printf "%s\n\n" "HEAD /help HTTP/1.0" | fossil http
printf "%s\n\n" "GET /help HTTP/1.0" | fossil http

This patch omits the body for HEAD requests.

Best Regards,
Johan
_______________________________________________
fossil-dev mailing list
fossil-dev@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev

Reply via email to