about summary refs log tree commit diff stats
path: root/adapter/protocol
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-22 16:45:36 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-22 16:45:36 +0200
commit1f4560cafd51874ee7a71d1e099e0a1d5a1e4947 (patch)
treef25f86bc878b9a5f46a4b33b711799d620076bf4 /adapter/protocol
parent3ec6c18c81853b52ff9dbc9ecccc890a9534322c (diff)
downloadchawan-1f4560cafd51874ee7a71d1e099e0a1d5a1e4947.tar.gz
http: allow multiple early hints
Diffstat (limited to 'adapter/protocol')
-rw-r--r--adapter/protocol/http.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/protocol/http.nim b/adapter/protocol/http.nim
index 3dc52f13..b51d6349 100644
--- a/adapter/protocol/http.nim
+++ b/adapter/protocol/http.nim
@@ -36,7 +36,7 @@ proc curlWriteHeader(p: cstring; size, nitems: csize_t; userdata: pointer):
     op.statusline = true
     var status: clong
     op.curl.getinfo(CURLINFO_RESPONSE_CODE, addr status)
-    if status == 103 and op.earlyhint == ehsNone:
+    if status == 103:
       op.earlyhint = ehsStarted
     else:
       op.connectreport = true