]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] tools: add a "word_match()" function to match words and ignore spaces
authorWilly Tarreau <w@1wt.eu>
Mon, 18 Jan 2010 14:05:57 +0000 (15:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Jan 2010 18:51:39 +0000 (19:51 +0100)
commit348238b3a9a48fd9e7be19cfccae56d1bb44cf46
tree5ebb4870d1d0b8b7a2b34cfe3d6ca2fc983d8acd
parent68085d8cfb7e8d8a18aa99caf5446a91bbed4e3a
[MINOR] tools: add a "word_match()" function to match words and ignore spaces

Some header values might be delimited with spaces, so it's not enough to
compare "close" or "keep-alive" with strncasecmp(). Use word_match() for
that.
include/common/standard.h
src/standard.c