Skip to content

Commit

Permalink
Merge pull request #1320 from rkrdeano/bug/rumble-redirect-loop
Browse files Browse the repository at this point in the history
fixes rumble loop
  • Loading branch information
iawia002 authored Mar 2, 2024
2 parents 3787092 + 6719d8b commit bac9923
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 bac9923

Please sign in to comment.