about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-28 15:52:35 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-28 15:52:35 +0100
commit6716b3a0013949dc8a0d51e39ae4724755305762 (patch)
treea31ed9956bfd90e994d09d707ee97dc6c12e4fae /src
parentb530ccc899a8cc8c63bad29abe1e479eb999b167 (diff)
downloadchawan-6716b3a0013949dc8a0d51e39ae4724755305762.tar.gz
http: fix broken early hint handling
The empty string comparison here was in fact pointless; in cw-out.c,
libcurl only calls cwb (which is curlWriteHeader in this case) if blen
is not 0, so the string will never be empty. (Instead, it is expected
to be \r\n; I've added \n too since CGI can already parse headers like
that.)

Normally it still worked because we just passed through the line to
cgi.nim.  However, it choked horribly on HTTP/2 early hints.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions