Skip to content

Commit aa66e94

Browse files
committed
follow redirects
1 parent 3eda141 commit aa66e94

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lambda/lambda.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package main
22

33
import (
4-
"errors"
54
"fmt"
65
"io/ioutil"
76
"net"
@@ -37,9 +36,7 @@ func main() {
3736

3837
client := &http.Client{}
3938
client.Timeout = clientTimeout
40-
client.CheckRedirect = func(req *http.Request, via []*http.Request) error {
41-
return errors.New("redirect")
42-
}
39+
4340
fmt.Printf("Will spawn %d workers making %d requests to %s\n", concurrencycount, maxRequestCount, address)
4441
runLoadTest(client, sqsurl, address, maxRequestCount, concurrencycount, awsregion, reportingFrequency, queueRegion, requestMethod)
4542
}

0 commit comments

Comments
 (0)