From: Willy Tarreau Date: Sun, 2 Dec 2018 11:43:18 +0000 (+0100) Subject: MINOR: hpack: add ":path" to the list of common header fields X-Git-Tag: v1.9-dev9~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a40782bb24f2f697408e604c3d346006c0f87ec5;p=thirdparty%2Fhaproxy.git MINOR: hpack: add ":path" to the list of common header fields The ":path" header field will be used a lot with outgoing requests, let's encode it with its index. --- diff --git a/src/hpack-enc.c b/src/hpack-enc.c index 2bb0050717..c4c8ea2408 100644 --- a/src/hpack-enc.c +++ b/src/hpack-enc.c @@ -93,6 +93,8 @@ int hpack_encode_header(struct buffer *out, const struct ist n, out->area[len++] = 0x61; // literal with indexing -- name="date" (idx 33) else if (isteq(n, ist("etag"))) out->area[len++] = 0x62; // literal with indexing -- name="etag" (idx 34) + else if (isteq(n, ist(":path"))) + out->area[len++] = 0x44; // literal with indexing -- name=":path" (idx 4) else if (isteq(n, ist("server"))) out->area[len++] = 0x76; // literal with indexing -- name="server" (idx 54) else if (isteq(n, ist("location")))