Skip to content

Commit

Permalink
[Bug] Fix query string parameter pass to fiber context (#2164)
Browse files Browse the repository at this point in the history
* Remove dump to keep querystring param when test

* Remove unused import
  • Loading branch information
joseroberto authored Oct 20, 2022
1 parent ce2d087 commit 917c937
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package fiber

import (
"bufio"
"bytes"
"errors"
"fmt"
"net"
Expand Down Expand Up @@ -883,11 +882,6 @@ func (app *App) Test(req *http.Request, msTimeout ...int) (resp *http.Response,
return nil, err
}

// adding back the query from URL, since dump cleans it
dumps := bytes.Split(dump, []byte(" "))
dumps[1] = []byte(req.URL.String())
dump = bytes.Join(dumps, []byte(" "))

// Create test connection
conn := new(testConn)

Expand Down

0 comments on commit 917c937

Please sign in to comment.