summaryrefslogtreecommitdiff
path: root/caddytest/caddytest.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-10-02 14:23:40 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-10-02 14:23:56 -0600
commit25d2b4bf2927bf69ddce582d33339ef7d13cb6bf (patch)
tree7741803a180bb85eefdb6861c1fd69e2b10b6a85 /caddytest/caddytest.go
parent023d702f30d0b7ccc039f2c96ca369def3acb41b (diff)
map: Reimplement; multiple outputs; optimize
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 1dda345..85a6373 100644
--- a/caddytest/caddytest.go
+++ b/caddytest/caddytest.go
@@ -430,7 +430,7 @@ func (tc *Tester) AssertResponse(req *http.Request, expectedStatusCode int, expe
body := string(bytes)
- if !strings.Contains(body, expectedBody) {
+ if body != expectedBody {
tc.t.Errorf("requesting \"%s\" expected response body \"%s\" but got \"%s\"", req.RequestURI, expectedBody, body)
}