diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2021-10-23 15:52:45 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2021-10-23 15:52:45 +0000 |
commit | c99b36cfd4f2cd5e603a9e0b535c422e5368701e (patch) | |
tree | 0299a6e7b525759ac5300d4f94d483c6874b6f84 /usr.sbin/rpki-client | |
parent | d129e7631f730a111944b5ad9918f4a4a5159097 (diff) |
* stop sending the content for head requests, even when its supplied by the
fcgi. Required by RFC 7231 and RFC 3875 section 4.3.2.
* If the client sends an empty body without a Content-Lenght:
do not add the Content-Lenght if it's a HEAD request.
If it's a HEAD request, the Content-Lenght should show the size of the
equivalent GET request, but we don't know how much that will be so
don't lie.
found by and fix suggested by Ross L Richardson, Thanks!
Additionally:
* when the fcgi supplies a Content-Length header, do not remove it and
set Transfer-Encoding: chunked. Instead, leave the Content-Lenght
header in place, as obviously the fcgi knows how much data will come.
ok claudio@
Diffstat (limited to 'usr.sbin/rpki-client')
0 files changed, 0 insertions, 0 deletions