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.
This commit is contained in:
Willy Tarreau 2018-12-02 12:43:18 +01:00
parent 76a551de2e
commit a40782bb24
1 changed files with 2 additions and 0 deletions

View File

@ -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")))