Merge branch 'master' into v3-beta

pull/1928/head
Muhammed Efe Çetin 2022-06-18 20:04:23 +03:00
commit 07e847b3c1
No known key found for this signature in database
GPG Key ID: 0AA4D45CBAA86F73
2 changed files with 9 additions and 4 deletions

View File

@ -5,7 +5,7 @@ jobs:
strategy:
matrix:
go-version: [1.18.x]
platform: [ubuntu-latest, windows-latest]
platform: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
@ -32,4 +32,3 @@ jobs:
uses: actions/checkout@v3
- name: Run Test
run: go test ./... -v -race

6
app.go
View File

@ -9,6 +9,7 @@ package fiber
import (
"bufio"
"bytes"
"crypto/tls"
"crypto/x509"
"errors"
@ -967,6 +968,11 @@ 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)