mirror of
https://github.com/curl/curl.git
synced 2026-08-05 02:16:13 +03:00
hyper: fix tests 580 and 581 for hyper
Hyper now has the ability to preserve header order. This commit adds a few lines setting the connection options for this feature. Related to issue #8617 Closes #8707
This commit is contained in:
parent
030adbceeb
commit
aad7d9f9a6
3 changed files with 5 additions and 2 deletions
|
|
@ -904,6 +904,8 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
|
|||
hyper_clientconn_options_http2(options, 1);
|
||||
h2 = TRUE;
|
||||
}
|
||||
hyper_clientconn_options_set_preserve_header_case(options, 1);
|
||||
hyper_clientconn_options_set_preserve_header_order(options, 1);
|
||||
|
||||
hyper_clientconn_options_exec(options, h->exec);
|
||||
|
||||
|
|
|
|||
|
|
@ -767,6 +767,9 @@ static CURLcode CONNECT(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
options = hyper_clientconn_options_new();
|
||||
hyper_clientconn_options_set_preserve_header_case(options, 1);
|
||||
hyper_clientconn_options_set_preserve_header_order(options, 1);
|
||||
|
||||
if(!options) {
|
||||
failf(data, "Couldn't create hyper client options");
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@
|
|||
357
|
||||
565
|
||||
579
|
||||
580
|
||||
581
|
||||
587
|
||||
670
|
||||
671
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue