commit | a12054991079cfb6c0f8b7484a8b8209be785cd2 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Aug 10 15:35:36 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Aug 17 10:28:25 2021 +0200 |
tree | 25912d0ce8d0eb4002d37e195a4935142dbefef6 | |
parent | b6ed0cbefd4236b36c7b2604b1930fc780f13bcd [diff] |
MINOR: http: add a new function http_validate_scheme() to validate a scheme While http_parse_scheme() extracts a scheme from a URI by extracting exactly the valid characters and stopping on delimiters, this new function performs the same on a fixed-size string. (cherry picked from commit d3d8d03d98c6624c8b15b81f7b80dd22fc3f9fd2) [wt: context adj] Signed-off-by: Willy Tarreau <w@1wt.eu>