We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b2443e commit 49140caCopy full SHA for 49140ca
Sources/async-http-client/proxy/http/Proxy.swift
@@ -158,7 +158,7 @@ private extension Http.Proxy{
158
_ taskDelegate: ITaskDelegate? = nil
159
) async throws -> (Data, URLResponse)
160
{
161
- guard retry > -1 else { throw HttpProxyError.RetryMustBePositive }
+ guard retry > 0 else { throw HttpProxyError.RetryMustBeBiggerThenZero }
162
163
let sesstion = config.getSession
164
var nextDelay: UInt64 = 1
Sources/async-http-client/proxy/http/enum/HttpProxyError.swift
@@ -9,6 +9,6 @@ import Foundation
9
10
enum HttpProxyError : Error{
11
12
- case RetryMustBePositive
+ case RetryMustBeBiggerThenZero
13
14
}
0 commit comments