Skip to content

Commit 8a64bcf

Browse files
author
Gal Topper
committed
Allow redirects.
1 parent 55eae8d commit 8a64bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postto/postto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func makeRequests(reqChan <-chan *fasthttp.Request, availableReqChan chan<- *fas
258258

259259
func post(req *fasthttp.Request, resp *fasthttp.Response) error {
260260
start := time.Now()
261-
err := client.Do(req, resp)
261+
err := client.DoRedirects(req, resp, 2)
262262
if err != nil {
263263
return errors.Wrap(err, "http error")
264264
} else if resp.StatusCode() >= 300 {

0 commit comments

Comments
 (0)