]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: compression: consider the "q=" attribute in Accept-Encoding
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Mar 2014 11:07:52 +0000 (12:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Mar 2014 11:12:01 +0000 (12:12 +0100)
commit0e9b1b4d1f0efc5e46a10371d9be21e97581faab
treed1e7f52ca6230871fb64797895fe09c656a3c230
parentf21be328e807acfde4b9959644fa346b7d890ca5
MEDIUM: compression: consider the "q=" attribute in Accept-Encoding

Till now we didn't consider "q=". It's problematic because the first
effect is that compression tokens were not even matched if it was
present.

It is important to parse it correctly because we still want to allow
a user-agent to send "q=0" to explicitly disable a compressor, or to
specify its preferences.

Now, q-values are respected in order of precedence, and when several
q-values are equal, the first occurrence is used.
src/proto_http.c