Hi guys,

On Mon, Nov 19, 2018 at 09:23:15PM +0100, Lukas Tribus wrote:
> Hi James,
> 
> 
> On Mon, 19 Nov 2018 at 19:29, James Brown <jbr...@easypost.com> wrote:
> >
> > Here's a strange thing I've noticed:
> >
> > When using HTTP/2, HAproxy is rewriting the "Accept-Ranges" response header 
> > into "Accept-Language".
> 
> Yup, exactly as you described, thanks for the report.
> 
> I assume this is a bug in the HPACK encoder, given that in the static
> table definition [1], accept-language has index 17, while
> accept-ranges has 18, which is correctly documented in
> src/hpack-tbl.c, but the comment on line 105 in src/hpack-enc.c makes
> me doubt our implementation:
> 
> out->str[len++] = 0x51; // literal with indexing --
> name="accept-ranges" (idx 17)
> 
> 
> Too much string magic going on there for me to provide prompt
> solution, but I assume this will be a quick fix for Willy.

Gloups! I'm quite ashamed, totally ashamed, almost red. I'll take a
look at this tomorrow. Thanks for the report!

Willy

Reply via email to