[master] 1f356ed Be more correct

Poul-Henning Kamp phk at varnish-cache.org
Fri Jul 5 11:20:27 CEST 2013


commit 1f356ed6bb72426e7322e1657959c6d32f7437db
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Jul 5 08:14:49 2013 +0000

    Be more correct

diff --git a/bin/varnishd/cache/cache_http1_fsm.c b/bin/varnishd/cache/cache_http1_fsm.c
index 90ffc21..68aa284 100644
--- a/bin/varnishd/cache/cache_http1_fsm.c
+++ b/bin/varnishd/cache/cache_http1_fsm.c
@@ -429,6 +429,7 @@ http1_setup_req_body(struct req *req, struct http1_r_b_s *rbs)
 		}
 		rbs->mode = CL;
 		rbs->yet = req->req_bodybytes - rbs->bytes_done;
+		req->req_body_status = REQ_BODY_PRESENT;
 		return (0);
 	}
 
@@ -436,7 +437,7 @@ http1_setup_req_body(struct req *req, struct http1_r_b_s *rbs)
 		rbs->mode = CHUNKED;
 		VSLb(req->vsl, SLT_Debug,
 		    "Transfer-Encoding in request");
-		req->req_body_status = REQ_BODY_DONE;
+		req->req_body_status = REQ_BODY_FAIL;
 		return (-1);
 	}
 



More information about the varnish-commit mailing list