Re: compression and q-values?

2014-03-19 Thread Willy Tarreau
Hi Jay, On Fri, Mar 14, 2014 at 01:51:13PM -0700, Jay Christopherson wrote: It appears that HAproxy is not honoring q-values in the Accept-Encoding header, when requesting compression. Indeed. The basic fix is not hard to do, but we're normally supposed to also support q=0, and ideally to

Re: compression and q-values?

2014-03-19 Thread Willy Tarreau
Hi again, On Wed, Mar 19, 2014 at 07:32:30AM +0100, Willy Tarreau wrote: If someone wants to take a look at it, it's in proto_http.c, function select_compression_request_header(). We need to cut the accept-encoding token on the semi-colon, check if the token is known, then if a q-value is

compression and q-values?

2014-03-14 Thread Jay Christopherson
It appears that HAproxy is not honoring q-values in the Accept-Encoding header, when requesting compression. When I run a curl command with Accept-Encoding:gzip (no q-value), I get back an expected response: #curl -svo /dev/null