Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Expose resp.body for inspection and testing in varnishtest

Needed to test #1123
  • Loading branch information...
commit 9d649d9a7f7969d3e712bfe1f4db55aa9b33d549 1 parent cbd31d0
Martin Blix Grydeland mbgrydeland authored Tollef Fog Heen committed

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  bin/varnishtest/vtc_http.c
2  bin/varnishtest/vtc_http.c
@@ -196,6 +196,8 @@ cmd_var_resolve(struct http *hp, char *spec)
196 196 return(hp->chunklen);
197 197 if (!strcmp(spec, "resp.bodylen"))
198 198 return(hp->bodylen);
  199 + if (!strcmp(spec, "resp.body"))
  200 + return(hp->body != NULL ? hp->body : spec);
199 201 if (!memcmp(spec, "req.http.", 9)) {
200 202 hh = hp->req;
201 203 hdr = spec + 9;

0 comments on commit 9d649d9

Please sign in to comment.
Something went wrong with that request. Please try again.