aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-http/lpeg_patterns-0.5.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-10-08 10:43:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-10-08 10:43:10 +0000
commit0b485b75b64cbd27b349ab286c182190742e9e12 (patch)
treec6a5282bf35ce4dd2b779fa921b9b5b5c3ac4a5e /community/lua-http/lpeg_patterns-0.5.patch
parent5777b04e8e41bbd6d24b0d3ec65f2aaa096ced34 (diff)
downloadaports-0b485b75b64cbd27b349ab286c182190742e9e12.tar.bz2
aports-0b485b75b64cbd27b349ab286c182190742e9e12.tar.xz
community/lua-http: backport fix for lpeg_patterns-0.5
lpeg_patterns 0.5 broke lua-http. backport upstream fix. https://github.com/daurnimator/lua-http/issues/132
Diffstat (limited to 'community/lua-http/lpeg_patterns-0.5.patch')
-rw-r--r--community/lua-http/lpeg_patterns-0.5.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/lua-http/lpeg_patterns-0.5.patch b/community/lua-http/lpeg_patterns-0.5.patch
new file mode 100644
index 0000000000..7034c07551
--- /dev/null
+++ b/community/lua-http/lpeg_patterns-0.5.patch
@@ -0,0 +1,37 @@
+From d5d948bbecf5b88ebb099d95a6fae111ffe13bab Mon Sep 17 00:00:00 2001
+From: daurnimator <quae@daurnimator.com>
+Date: Sun, 15 Jul 2018 23:12:25 +1000
+Subject: [PATCH] http/request.lua: Use new lpeg_patterns 0.5 capture format
+
+---
+ README.md | 2 +-
+ http-scm-0.rockspec | 2 +-
+ http/request.lua | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/README.md b/README.md
+index a7183c3..91e2c6c 100644
+--- a/README.md
++++ b/README.md
+@@ -33,7 +33,7 @@ This will automatically install run-time lua dependencies for you.
+ - [luaossl](http://25thandclement.com/~william/projects/luaossl.html) >= 20161208
+ - [basexx](https://github.com/aiq/basexx/) >= 0.2.0
+ - [lpeg](http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html)
+- - [lpeg_patterns](https://github.com/daurnimator/lpeg_patterns) >= 0.3
++ - [lpeg_patterns](https://github.com/daurnimator/lpeg_patterns) >= 0.5
+ - [fifo](https://github.com/daurnimator/fifo.lua)
+
+ To use gzip compression you need **one** of:
+diff --git a/http/request.lua b/http/request.lua
+index aa80648..fccd843 100644
+--- a/http/request.lua
++++ b/http/request.lua
+@@ -36,7 +36,7 @@ local request_mt = {
+ }
+
+ local EOF = lpeg.P(-1)
+-local sts_patt = lpeg.Cf(lpeg.Ct(true) * http_patts.Strict_Transport_Security, rawset) * EOF
++local sts_patt = http_patts.Strict_Transport_Security * EOF
+ local uri_patt = uri_patts.uri * EOF
+ local uri_ref = uri_patts.uri_reference * EOF
+