]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hyper: fix tests 580 and 581 for hyper
authorLiam Warfield <liam.warfield@gmail.com>
Thu, 14 Apr 2022 04:36:21 +0000 (22:36 -0600)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Apr 2022 15:33:08 +0000 (17:33 +0200)
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

lib/c-hyper.c
lib/http_proxy.c
tests/data/DISABLED

index 7389210cc8b7b6d66ac18ec7e5f1e5de21eeab56..de09568741c983e36673a6cec85bbbd9c1c31c0b 100644 (file)
@@ -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);
 
index 1aace7844ab446ef5704176a678064d54590b5ff..863cbbbdced7ce564dc1523053d1840c7032a86b 100644 (file)
@@ -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;
index 7d4110461ca1473661bcb1fdce9cc1bf44b5c2ca..efdfeefc824db2452f986991412b40ff9cfcfa30 100644 (file)
@@ -45,8 +45,6 @@
 357
 565
 579
-580
-581
 587
 670
 671