mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-14 08:29:01 +02:00
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>
This commit is contained in:
committed by
William Lallemand
parent
2493ee81d4
commit
bcced09b91
@@ -57,6 +57,8 @@ int http_parse_header(const struct ist hdr, struct ist *name, struct ist *value)
|
||||
int http_parse_stline(const struct ist line, struct ist *p1, struct ist *p2, struct ist *p3);
|
||||
int http_parse_status_val(const struct ist value, struct ist *status, struct ist *reason);
|
||||
|
||||
int http_compare_etags(struct ist etag1, struct ist etag2);
|
||||
|
||||
/*
|
||||
* Given a path string and its length, find the position of beginning of the
|
||||
* query string. Returns NULL if no query string is found in the path.
|
||||
|
||||
Reference in New Issue
Block a user