summaryrefslogtreecommitdiff
path: root/src/h2.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-03-25 19:05:13 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2023-03-25 19:05:13 -0400
commitd7a239dcf2583eb6c51a36755f9153566c34f0e9 (patch)
tree2fa33d78c4ac50842af754e5af40bd908172b6ee /src/h2.c
parent112c918caac2d62d17fd1771d1605cf1cfcecad1 (diff)
downloadlighttpd-git-d7a239dcf2583eb6c51a36755f9153566c34f0e9.tar.gz
[core] h2 mark :status matching lsxpack enum value
Diffstat (limited to 'src/h2.c')
-rw-r--r--src/h2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/h2.c b/src/h2.c
index 07ca77be..3405e185 100644
--- a/src/h2.c
+++ b/src/h2.c
@@ -2139,6 +2139,7 @@ h2_send_headers (request_st * const r, connection * const con)
lsx.name_len = 7;
lsx.val_offset = 9;
lsx.val_len = 3;
+ lsx.flags = LSXPACK_HPACK_VAL_MATCHED;
if (__builtin_expect( (200 == r->http_status), 1)) {
lsx.hpack_index = LSHPACK_HDR_STATUS_200;
}
@@ -2153,6 +2154,7 @@ h2_send_headers (request_st * const r, connection * const con)
case 404: lsx.hpack_index = LSHPACK_HDR_STATUS_404; break;
case 500: lsx.hpack_index = LSHPACK_HDR_STATUS_500; break;
default:
+ lsx.flags = 0;
break;
}
int nx;