summaryrefslogtreecommitdiff
path: root/caddytest/caddytest.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/caddytest.go')
-rw-r--r--caddytest/caddytest.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go
index ce70f77..c94ef6c 100644
--- a/caddytest/caddytest.go
+++ b/caddytest/caddytest.go
@@ -255,7 +255,7 @@ func AssertGetResponse(t *testing.T, requestURI string, statusCode int, expected
if !strings.Contains(body, expectedBody) {
t.Errorf("requesting \"%s\" expected response body \"%s\" but got \"%s\"", requestURI, expectedBody, body)
}
- return resp, string(body)
+ return resp, body
}
// AssertGetResponseBody request a URI and assert the status code matches