From 9fadbcebcd7f68779e9b8f74ee68db248f1aebea Mon Sep 17 00:00:00 2001 From: mdouchement Date: Sun, 2 May 2021 19:52:04 +0200 Subject: [PATCH] Fix request for Echo v4.2.2 RewriteURL middleware --- gofight.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gofight.go b/gofight.go index e80cfb6..84d7bbe 100644 --- a/gofight.go +++ b/gofight.go @@ -311,6 +311,7 @@ func (rc *RequestConfig) initTest() (*http.Request, *httptest.ResponseRecorder) body := bytes.NewBufferString(rc.Body) req, _ := http.NewRequest(rc.Method, rc.Path, body) + req.RequestURI = req.URL.RequestURI() if len(qs) > 0 { req.URL.RawQuery = qs