]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1147: hyper doesn't allow "crazy" request headers like built-in
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Jul 2021 14:53:00 +0000 (16:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Jul 2021 20:51:13 +0000 (22:51 +0200)
... so strip that from the test.

Closes #7349

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

index 7a22007cee4825f75425e894c99953d32bec4726..e51f06d5ac997f1dd9134945d02ba9f7366c3680 100644 (file)
@@ -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) {
index 5366e16dc5f2350a1686c7ec6fbb0baa2cadc320..e04eaa8a66b47866f552373e38077664943e631d 100644 (file)
@@ -95,7 +95,6 @@
 1137
 1138
 1144
-1147
 1156
 1160
 1164
index ea1ae00e42b6832e98c4e2c2355ef14ebef90861..78cf49ad4df6d2f6fde1b635bf0d3f674d520a15 100644 (file)
@@ -40,7 +40,9 @@ One: 1
 Two: 2
 no-colon
 
+%if !hyper
  And A Funny One : wohoo
+%endif
 User-Agent:
 </file>
  <command>
@@ -57,7 +59,9 @@ Host: %HOSTIP:%HTTPPORT
 Accept: */*\r
 One: 1\r
 Two: 2\r
+%if !hyper
  And A Funny One : wohoo\r
+%endif
 \r
 </protocol>
 </verify>