Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Expose resp.body for inspection and testing in varnishtest

Needed to test #1123
  • Loading branch information...
commit 9d649d9a7f7969d3e712bfe1f4db55aa9b33d549 1 parent cbd31d0
@mbgrydeland mbgrydeland authored Tollef Fog Heen committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  bin/varnishtest/vtc_http.c
View
2  bin/varnishtest/vtc_http.c
@@ -196,6 +196,8 @@ cmd_var_resolve(struct http *hp, char *spec)
return(hp->chunklen);
if (!strcmp(spec, "resp.bodylen"))
return(hp->bodylen);
+ if (!strcmp(spec, "resp.body"))
+ return(hp->body != NULL ? hp->body : spec);
if (!memcmp(spec, "req.http.", 9)) {
hh = hp->req;
hdr = spec + 9;
Please sign in to comment.
Something went wrong with that request. Please try again.