From: Daniel Stenberg Date: Mon, 5 Jul 2021 14:53:00 +0000 (+0200) Subject: test1147: hyper doesn't allow "crazy" request headers like built-in X-Git-Tag: curl-7_78_0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3d612662d3104339db938356c1754c5068e1055;p=thirdparty%2Fcurl.git test1147: hyper doesn't allow "crazy" request headers like built-in ... so strip that from the test. Closes #7349 --- diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 7a22007cee..e51f06d5ac 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -510,7 +510,7 @@ CURLcode Curl_hyper_header(struct Curl_easy *data, hyper_headers *headers, if(HYPERE_OK != hyper_headers_add(headers, (uint8_t *)n, nlen, (uint8_t *)v, vlen)) { - failf(data, "hyper_headers_add host"); + failf(data, "hyper refused to add header '%s'", line); return CURLE_OUT_OF_MEMORY; } if(data->set.verbose) { diff --git a/tests/data/DISABLED b/tests/data/DISABLED index 5366e16dc5..e04eaa8a66 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -95,7 +95,6 @@ 1137 1138 1144 -1147 1156 1160 1164 diff --git a/tests/data/test1147 b/tests/data/test1147 index ea1ae00e42..78cf49ad4d 100644 --- a/tests/data/test1147 +++ b/tests/data/test1147 @@ -40,7 +40,9 @@ One: 1 Two: 2 no-colon +%if !hyper And A Funny One : wohoo +%endif User-Agent: @@ -57,7 +59,9 @@ Host: %HOSTIP:%HTTPPORT Accept: */* One: 1 Two: 2 +%if !hyper And A Funny One : wohoo +%endif