Skip to content

Commit ee82797

Browse files
committed
s/Rountripper/Roundtripper/
1 parent 8eafec9 commit ee82797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http/http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (no noLocalTransport) RoundTrip(req *http.Request) (*http.Response, error)
8282
return no.inner.RoundTrip(req)
8383
}
8484

85-
func SafeRountripper(trans http.RoundTripper, log logrus.FieldLogger, allowedBlocks ...*net.IPNet) http.RoundTripper {
85+
func SafeRoundtripper(trans http.RoundTripper, log logrus.FieldLogger, allowedBlocks ...*net.IPNet) http.RoundTripper {
8686
if trans == nil {
8787
trans = http.DefaultTransport
8888
}
@@ -97,7 +97,7 @@ func SafeRountripper(trans http.RoundTripper, log logrus.FieldLogger, allowedBlo
9797
}
9898

9999
func SafeHTTPClient(client *http.Client, log logrus.FieldLogger, allowedBlocks ...*net.IPNet) *http.Client {
100-
client.Transport = SafeRountripper(client.Transport, log, allowedBlocks...)
100+
client.Transport = SafeRoundtripper(client.Transport, log, allowedBlocks...)
101101

102102
return client
103103
}

0 commit comments

Comments
 (0)