MINOR: cache: Add extra "cache-control" value checks
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 3 Dec 2020 17:19:30 +0000 (18:19 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 4 Dec 2020 09:21:56 +0000 (10:21 +0100)
commitfcea374fdfbba5af12349905dd45ae812a36284a
tree4dd1058b98213c48926ecc041f8a79ced896aff8
parent795e1412b00c76c3a42effd9158b5d8b2f30100d
MINOR: cache: Add extra "cache-control" value checks

The Cache-Control max-age and s-maxage directives should be followed by
a positive numerical value (see RFC 7234#5.2.1.1). According to the
specs, a sender "should not" generate a quoted-string value but we will
still accept this format.
src/cache.c