Commit 8f8c85c4 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Reza Naghibi

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

Conflicts:
    bin/varnishd/http2/cache_http2_deliver.c
parent f1d13df9
......@@ -238,6 +238,7 @@ h2_build_headers(struct vsb *resp, struct req *req)
AN(VSB_new(resp, req->ws->f, l, VSB_FIXEDLEN));
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