diff options
author | Sean McArthur <sean@seanmonstar.com> | 2022-11-18 12:29:44 -0800 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-11-19 13:01:12 +0100 |
commit | 8c859cdb6907ba0a013c4c7086ad32493a8b9589 (patch) | |
tree | eddd8885e5e4266ca2a7aa546749b970feb3f3ad /lib/c-hyper.c | |
parent | 8ed97ad2bd5a2e94f649a96a415c655c2f898490 (diff) | |
download | curl-8c859cdb6907ba0a013c4c7086ad32493a8b9589.tar.gz |
hyper: classify headers as CONNECT and 1XX
Closes #9947
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r-- | lib/c-hyper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 8ad1a9c28..ad7a88df9 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -163,6 +163,10 @@ static int hyper_each_header(void *userdata, writetype = CLIENTWRITE_HEADER; if(data->set.include_header) writetype |= CLIENTWRITE_BODY; + if(data->state.hconnect) + writetype |= CLIENTWRITE_CONNECT; + if(data->req.httpcode/100 == 1) + writetype |= CLIENTWRITE_1XX; result = Curl_client_write(data, writetype, headp, len); if(result) { data->state.hresult = CURLE_ABORTED_BY_CALLBACK; |