summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorKévin Dunglas <kevin@dunglas.fr>2023-10-02 22:55:09 +0200
committerGitHub <noreply@github.com>2023-10-02 20:55:09 +0000
commit82c356f2548ca62b75f76104bef44915482e8fd9 (patch)
tree68a184df082ebca865feff34d4bbd3d34263d87d /caddytest
parent1405683c2beb08595cf1ab011c4439861cf7640b (diff)
fix: caddytest.AssertResponseCode error message (#5853)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/caddytest.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go
index 9c17070..39aca23 100644
--- a/caddytest/caddytest.go
+++ b/caddytest/caddytest.go
@@ -467,7 +467,7 @@ func (tc *Tester) AssertResponseCode(req *http.Request, expectedStatusCode int)
}
if expectedStatusCode != resp.StatusCode {
- tc.t.Errorf("requesting \"%s\" expected status code: %d but got %d", req.RequestURI, expectedStatusCode, resp.StatusCode)
+ tc.t.Errorf("requesting \"%s\" expected status code: %d but got %d", req.URL.RequestURI(), expectedStatusCode, resp.StatusCode)
}
return resp