[master] fc09259 Fix a buglet which prevented req.body from being shown.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Jan 22 12:36:26 CET 2013
commit fc0925900dfdd0bfa83d41135679a90ba7661fde
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jan 22 11:36:09 2013 +0000
Fix a buglet which prevented req.body from being shown.
diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index cc49568..a7c128c 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -448,6 +448,7 @@ http_swallow_body(struct http *hp, char * const *hh, int body)
ll = 0;
p = http_find_header(hh, "content-length");
if (p != NULL) {
+ hp->body = hp->rxbuf + hp->prxbuf;
l = strtoul(p, NULL, 0);
(void)http_rxchar(hp, l, 0);
vtc_dump(hp->vl, 4, "body", hp->body, l);
More information about the varnish-commit
mailing list