[master] 77d4c56c0 Get the RFC comment right
Poul-Henning Kamp
phk at FreeBSD.org
Wed Nov 14 11:06:08 UTC 2018
commit 77d4c56c0b7c2d35db2a7c2eeace449fa16a6874
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Nov 14 11:05:50 2018 +0000
Get the RFC comment right
diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index 74515e7b6..e8c2e542b 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -364,10 +364,12 @@ cnt_transmit(struct worker *wrk, struct req *req)
else
req->resp_len = ObjGetLen(req->wrk, req->objcore);
- if (head || status < 200 || status == 204 || status == 304)
- sendbody = 0; /* rfc7230,l,1748,1752 */
- else
+ if (head || status < 200 || status == 204 || status == 304) {
+ // rfc7230,l,1748,1752
+ sendbody = 0;
+ } else {
sendbody = 1;
+ }
if (!req->disable_esi && req->resp_len != 0 &&
ObjHasAttr(wrk, req->objcore, OA_ESIDATA) &&
More information about the varnish-commit
mailing list