Commit graph

6 commits

Author SHA1 Message Date
Kim Alvefur
9dd7726419 util.http: Silence strict luacheck warning in tests 2023-12-09 21:01:49 +01:00
Kim Alvefur
99906e5b9c util.http: Implement parser for RFC 7239 Forwarded header
Standardized and structured replacement for the X-Forwarded-For,
X-Forwarded-Proto set of headers.

Notably, this allows per-hop protocol information, unlike
X-Forwarded-Proto which is always a single value for some reason.
2023-06-03 16:15:52 +02:00
Emmanuel Gil Peyrot
a4b069589c spec: Add test cases for util.http.contains_token 2020-04-10 20:20:14 +02:00
Kim Alvefur
3e30870220 util.http: Fix decoding of uppercase URL encoded chars
Broken in 1af5106a2c34
2019-01-16 13:53:04 +01:00
Kim Alvefur
ba2688c78d util.http: Add tests for normalize_path 2018-10-14 14:32:02 +02:00
Waqas Hussain
67293fc09f Port tests to the busted test runner 2017-09-15 17:07:57 -04:00