Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Commits

[master] 5625a9a Expose resp.body for inspection and testing in varnishtest

 

 

Varnish commits RSS feed   Index | Next | Previous | View Threaded


martin at varnish-cache

Apr 16, 2012, 7:19 AM

Post #1 of 1 (77 views)
Permalink
[master] 5625a9a Expose resp.body for inspection and testing in varnishtest

commit 5625a9a532536f5c77ea9a1798b89127589e7fce
Author: Martin Blix Grydeland <martin [at] varnish-software>
Date: Tue Mar 27 14:12:33 2012 +0200

Expose resp.body for inspection and testing in varnishtest

Needed to test #1123

diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 00be0be..0678efd 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -190,6 +190,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;

_______________________________________________
varnish-commit mailing list
varnish-commit [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit

Varnish commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.