Commit b71ccdeb authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Add an assert that the status is valid on entry to h2_build_headers

parent 9494205f
......@@ -232,6 +232,7 @@ h2_build_headers(struct vsb *resp, struct req *req)
uint8_t buf[6];
ssize_t sz, sz1;
assert(req->resp->status % 1000 >= 100);
l = h2_status(buf, req->resp->status % 1000);
VSB_bcat(resp, buf, l);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment