[6.0] 24a589604 Get the RFC comment right
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Feb 6 08:40:12 UTC 2019
commit 24a5896047fc5345f21f4fa0f587283da4219d01
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 f81891207..864a4eb26 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -365,10 +365,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