Skip to content

Commit 1b2443e

Browse files
committed
Update Proxy.swift
1 parent ff1dc44 commit 1b2443e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/async-http-client/proxy/http/Proxy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private extension Http.Proxy{
158158
_ taskDelegate: ITaskDelegate? = nil
159159
) async throws -> (Data, URLResponse)
160160
{
161-
guard retry < 0 else { throw HttpProxyError.RetryMustBePositive }
161+
guard retry > -1 else { throw HttpProxyError.RetryMustBePositive }
162162

163163
let sesstion = config.getSession
164164
var nextDelay: UInt64 = 1

0 commit comments

Comments
 (0)