Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Expose resp.body for inspection and testing in varnishtest
Browse files Browse the repository at this point in the history
Needed to test #1123
  • Loading branch information
mbgrydeland authored and Tollef Fog Heen committed May 24, 2012
1 parent cbd31d0 commit 9d649d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/varnishtest/vtc_http.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9d649d9

Please sign in to comment.