Skip to content

Commit 623d62f

Browse files
committed
fix: Correctly set HTTP client timeout initialization
1 parent 1432f26 commit 623d62f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provider/http/http.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ func newOptions(opts ...Option) *options {
9191
}
9292
if o.client == nil {
9393
o.client = &http.Client{}
94-
if o.timeout > 0 {
95-
o.client.Timeout = o.timeout
96-
}
94+
}
95+
if o.timeout > 0 {
96+
o.client.Timeout = o.timeout
9797
}
9898
return o
9999
}

0 commit comments

Comments
 (0)