aboutsummaryrefslogtreecommitdiffstats
path: root/community/h2o/largeheadertest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/h2o/largeheadertest.patch')
-rw-r--r--community/h2o/largeheadertest.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/h2o/largeheadertest.patch b/community/h2o/largeheadertest.patch
new file mode 100644
index 00000000000..3c3770b522a
--- /dev/null
+++ b/community/h2o/largeheadertest.patch
@@ -0,0 +1,19 @@
+Upstream: No
+Reason: Without this patch tests using curl for large http headers fail, issue not present with curl on other distro's
+Url: https://lists.alpinelinux.org/~alpine/users/%3CCAG5E%3DNdf%3Dc1+Hwt2rY%3DK-kJTtWuMHLnitDoCLrCKkp7n5ksD6w%40mail.gmail.com%3E
+--- a/t/50fastcgi.t
++++ b/t/50fastcgi.t
+@@ -66,7 +66,12 @@
+ my ($proto, $port, $curl) = @_;
+ plan skip_all => "skip due to curl bug #659"
+ if $curl =~ /--http2/;
+- my $content = `$curl --silent --show-error -H foo:@{["0123456789"x7000]} $proto://127.0.0.1:$port/echo-headers`;
++ my $content;
++ if ($curl =~ /--http1.1/) {
++ $content = `wget --no-check-certificate -O - --header="foo:@{["0123456789"x7000]}" https://127.0.0.1:$port/echo-headers`;
++ } else {
++ $content = `$curl --silent --show-error -H foo:@{["0123456789"x7000]} $proto://127.0.0.1:$port/echo-headers`;
++ }
+ like $content, qr/^foo: (0123456789){7000,7000}$/mi;
+ if ($proto eq 'https') {
+ like $content, qr/^https: on$/m;