Skip to content

Commit bda706b

Browse files
committed
jar fix
1 parent 44948ec commit bda706b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/utils/http-client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ func NewDanzoHTTPClient(cfg HTTPClientConfig) *DanzoHTTPClient {
4040
if cfg.KATimeout == 0 {
4141
cfg.KATimeout = 60 * time.Second
4242
}
43+
if cfg.Jar == nil {
44+
jar, _ := cookiejar.New(nil)
45+
cfg.Jar = jar
46+
}
4347
transport := &http.Transport{
4448
IdleConnTimeout: cfg.KATimeout,
4549
MaxIdleConns: 100,

0 commit comments

Comments
 (0)