Skip to content

Commit

Permalink
Fix request for Echo v4.2.2 RewriteURL middleware (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdouchement authored Jun 27, 2021
1 parent 35be5a4 commit 8bfe2d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gofight.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bfe2d5

Please sign in to comment.