Skip to content

Commit d5d948b

Browse files
committed
http/request.lua: Use new lpeg_patterns 0.5 capture format
1 parent 73683bf commit d5d948b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This will automatically install run-time lua dependencies for you.
3333
- [luaossl](http://25thandclement.com/~william/projects/luaossl.html) >= 20161208
3434
- [basexx](https://github.com/aiq/basexx/) >= 0.2.0
3535
- [lpeg](http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html)
36-
- [lpeg_patterns](https://github.com/daurnimator/lpeg_patterns) >= 0.3
36+
- [lpeg_patterns](https://github.com/daurnimator/lpeg_patterns) >= 0.5
3737
- [fifo](https://github.com/daurnimator/fifo.lua)
3838

3939
To use gzip compression you need **one** of:

http-scm-0.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies = {
1919
"luaossl >= 20161208";
2020
"basexx >= 0.2.0";
2121
"lpeg";
22-
"lpeg_patterns >= 0.3";
22+
"lpeg_patterns >= 0.5";
2323
"fifo";
2424
}
2525

http/request.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ local request_mt = {
3636
}
3737

3838
local EOF = lpeg.P(-1)
39-
local sts_patt = lpeg.Cf(lpeg.Ct(true) * http_patts.Strict_Transport_Security, rawset) * EOF
39+
local sts_patt = http_patts.Strict_Transport_Security * EOF
4040
local uri_patt = uri_patts.uri * EOF
4141
local uri_ref = uri_patts.uri_reference * EOF
4242

0 commit comments

Comments
 (0)