mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
fix: insert response cookies into request for redirect requests
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
**go version**
|
||||
|
||||
- change: set http request timeout default to 120s
|
||||
- fix: insert response cookies into request for redirect requests
|
||||
|
||||
## v4.1.4 (2022-06-17)
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"crypto/tls"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/cookiejar"
|
||||
"net/url"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
@@ -29,6 +30,7 @@ func NewRunner(t *testing.T) *HRPRunner {
|
||||
if t == nil {
|
||||
t = &testing.T{}
|
||||
}
|
||||
jar, _ := cookiejar.New(nil)
|
||||
return &HRPRunner{
|
||||
t: t,
|
||||
failfast: true, // default to failfast
|
||||
@@ -37,6 +39,7 @@ func NewRunner(t *testing.T) *HRPRunner {
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
},
|
||||
Jar: jar, // insert response cookies into request
|
||||
Timeout: 120 * time.Second,
|
||||
},
|
||||
http2Client: &http.Client{
|
||||
|
||||
Reference in New Issue
Block a user