diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-28 15:52:35 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-28 15:52:35 +0100 |
commit | 6716b3a0013949dc8a0d51e39ae4724755305762 (patch) | |
tree | a31ed9956bfd90e994d09d707ee97dc6c12e4fae /src/loader | |
parent | b530ccc899a8cc8c63bad29abe1e479eb999b167 (diff) | |
download | chawan-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/loader')
0 files changed, 0 insertions, 0 deletions