@marcel91200 / caddy Mirror · read-only / commits / 82c356f2
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 22:00 UTC

fix: caddytest.AssertResponseCode error message (#5853)

Kévin Dunglas committed Oct 2, 2023 at 22:55 UTC 82c356f2548ca62b75f76104bef44915482e8fd9
1 file changed +1 -1
caddytest/caddytest.go
+1 -1
@@ -467,7 +467,7 @@ func (tc *Tester) AssertResponseCode(req *http.Request, expectedStatusCode int)
467 }
468
469 if expectedStatusCode != resp.StatusCode {
470 - tc.t.Errorf("requesting \"%s\" expected status code: %d but got %d", req.RequestURI, expectedStatusCode, resp.StatusCode)
470 + tc.t.Errorf("requesting \"%s\" expected status code: %d but got %d", req.URL.RequestURI(), expectedStatusCode, resp.StatusCode)
471 }
472
473 return resp