about summary refs log tree commit diff stats
path: root/src/loader
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/loader
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/loader')
0 files changed, 0 insertions, 0 deletions
f='/akspecs/ranger/commit/ranger/applications.py?h=v1.8.0&id=cc952d63d81e410d1c7dd3bfbe91ee6cfdd3d7a8'>cc952d63 ^
871c502d ^



728fb838 ^
871c502d ^

3de15ddd ^
871c502d ^























0c0b9489 ^
871c502d ^


0c0b9489 ^
871c502d ^
4c05e43d ^
871c502d ^

d88232a3 ^
871c502d ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61