diff options
author | Liam Warfield <liam.warfield@gmail.com> | 2022-04-13 22:36:21 -0600 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-04-25 17:33:08 +0200 |
commit | aad7d9f9a63ab34a9cce20b4701c4315d26dc64b (patch) | |
tree | efff9bb624d92907d39e48dd7570b9a181951710 | |
parent | 030adbceebb209df0486d07d76dedce73238055a (diff) | |
download | curl-aad7d9f9a63ab34a9cce20b4701c4315d26dc64b.tar.gz |
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
-rw-r--r-- | lib/c-hyper.c | 2 | ||||
-rw-r--r-- | lib/http_proxy.c | 3 | ||||
-rw-r--r-- | tests/data/DISABLED | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 7389210cc..de0956874 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -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); diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 1aace7844..863cbbbdc 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -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; diff --git a/tests/data/DISABLED b/tests/data/DISABLED index 7d4110461..efdfeefc8 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -45,8 +45,6 @@ 357 565 579 -580 -581 587 670 671 |