diff --git a/README.md b/README.md index a7183c32..91e2c6c3 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-scm-0.rockspec b/http-scm-0.rockspec index af1601fc..e6a2a609 100644 --- a/http-scm-0.rockspec +++ b/http-scm-0.rockspec @@ -19,7 +19,7 @@ dependencies = { "luaossl >= 20161208"; "basexx >= 0.2.0"; "lpeg"; - "lpeg_patterns >= 0.3"; + "lpeg_patterns >= 0.5"; "fifo"; } diff --git a/http/request.lua b/http/request.lua index aa806482..fccd843f 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