Skip to content

Commit df66c67

Browse files
authored
Fixed typo (#695)
1 parent 668c193 commit df66c67

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ internal final class HTTPBin<RequestHandler: ChannelInboundHandler> where
510510

511511
let responseEncoder = HTTPResponseEncoder()
512512
let requestDecoder = ByteToMessageHandler(HTTPRequestDecoder(leftOverBytesStrategy: .forwardBytes))
513-
let proxySimulator = HTTPProxySimulator(promise: promise, expectedAuhorization: expectedAuthorization)
513+
let proxySimulator = HTTPProxySimulator(promise: promise, expectedAuthorization: expectedAuthorization)
514514

515515
try sync.addHandler(responseEncoder)
516516
try sync.addHandler(requestDecoder)
@@ -660,13 +660,13 @@ final class HTTPProxySimulator: ChannelInboundHandler, RemovableChannelHandler {
660660

661661
// the promise to succeed, once the proxy connection is setup
662662
let promise: EventLoopPromise<Void>
663-
let expectedAuhorization: String?
663+
let expectedAuthorization: String?
664664

665665
var head: HTTPResponseHead
666666

667-
init(promise: EventLoopPromise<Void>, expectedAuhorization: String?) {
667+
init(promise: EventLoopPromise<Void>, expectedAuthorization: String?) {
668668
self.promise = promise
669-
self.expectedAuhorization = expectedAuhorization
669+
self.expectedAuthorization = expectedAuthorization
670670
self.head = HTTPResponseHead(version: .init(major: 1, minor: 1), status: .ok, headers: .init([("Content-Length", "0")]))
671671
}
672672

@@ -679,9 +679,9 @@ final class HTTPProxySimulator: ChannelInboundHandler, RemovableChannelHandler {
679679
return
680680
}
681681

682-
if let expectedAuhorization = self.expectedAuhorization {
682+
if let expectedAuthorization = self.expectedAuthorization {
683683
guard let authorization = head.headers["proxy-authorization"].first,
684-
expectedAuhorization == authorization else {
684+
expectedAuthorization == authorization else {
685685
self.head.status = .proxyAuthenticationRequired
686686
return
687687
}

0 commit comments

Comments
 (0)