Skip to content

Commit

Permalink
fixes rumble loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrdeano committed Mar 1, 2024
1 parent 3787092 commit 6719d8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"io"
"net/http"
"net/http/cookiejar"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -54,9 +55,14 @@ func Request(method, url string, body io.Reader, headers map[string]string) (*ht
TLSHandshakeTimeout: 10 * time.Second,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
jar, err := cookiejar.New(nil)
if err != nil {
return nil, errors.WithStack(err)
}
client := &http.Client{
Transport: transport,
Timeout: 15 * time.Minute,
Jar: jar,
}

req, err := http.NewRequest(method, url, body)
Expand Down

0 comments on commit 6719d8b

Please sign in to comment.