aboutsummaryrefslogtreecommitdiffstats
path: root/community/h2o/backslashinterpreationintests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/h2o/backslashinterpreationintests.patch')
-rw-r--r--community/h2o/backslashinterpreationintests.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/h2o/backslashinterpreationintests.patch b/community/h2o/backslashinterpreationintests.patch
new file mode 100644
index 00000000000..c8cb4663c85
--- /dev/null
+++ b/community/h2o/backslashinterpreationintests.patch
@@ -0,0 +1,14 @@
+Upstream: Yes
+Reason: Without this patch tests fail on shells backslash escapes disabled
+Url: https://github.com/h2o/h2o/pull/2331
+--- a/t/50mruby.t
++++ b/t/50mruby.t
+@@ -498,7 +498,7 @@
+ EOT
+ my $nc = sub {
+ my $path = shift;
+- my $cmd = "echo 'GET $path HTTP/1.1\\r\\nHost: 127.0.0.1\\r\\n\\r' | nc 127.0.0.1 $server->{port}";
++ my $cmd = "echo 'GET $path HTTP/1.1\r\nHost: 127.0.0.1\r\n\r' | nc 127.0.0.1 $server->{port}";
+ (undef, my $r) = run_prog($cmd);
+ split(/\r\n\r\n/, $r, 2);
+ };