MINOR: http: Add etag comparison function
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 22 Oct 2020 08:40:03 +0000 (10:40 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Oct 2020 14:06:20 +0000 (16:06 +0200)
commitbcced09b91c510685b8bd6cb264a5d49c6fd472d
tree08551e4b17423e60d9fbb71682f119a7c1ca16d7
parent2493ee81d40c8edc8841caf5fe95e7a5c6c45168
MINOR: http: Add etag comparison function

Add a function that compares two etags that might be of different types.
If any of them is weak, the 'W/' prefix is discarded and a strict string
comparison is performed.

Co-authored-by: Tim Duesterhus <tim@bastelstu.be>
include/haproxy/http.h
src/http.c