[master] 7388e70 Point out upper-case characters, I'm sure this will be a common mistake.
Poul-Henning Kamp
phk at FreeBSD.org
Sat Feb 25 22:57:05 CET 2017
commit 7388e7053bbd6b3cad59c5748cd33b3472795ef0
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sat Feb 25 20:47:49 2017 +0000
Point out upper-case characters, I'm sure this will be a common mistake.
diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index 26a0347..f3e1893 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -414,6 +414,7 @@ h2_rx_headers(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
{
struct req *req;
struct h2h_decode d[1];
+ h2_error h2e;
const uint8_t *p;
size_t l;
@@ -457,8 +458,16 @@ h2_rx_headers(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
p += 5;
l -= 5;
}
- XXXAZ(h2h_decode_bytes(h2, d, p, l));
- XXXAZ(h2h_decode_fini(h2, d));
+ h2e = h2h_decode_bytes(h2, d, p, l);
+ if (h2e != NULL) {
+ VSL(SLT_Debug, 0, "H2H_DECODE_BYTES %s", h2e->name);
+ return (h2e);
+ }
+ h2e = h2h_decode_fini(h2, d);
+ if (h2e != NULL) {
+ VSL(SLT_Debug, 0, "H2H_DECODE_FINI %s", h2e->name);
+ return (h2e);
+ }
VSLb_ts_req(req, "Req", req->t_req);
http_SetH(req->http, HTTP_HDR_PROTO, "HTTP/2.0");
More information about the varnish-commit
mailing list