From aa6144143b1fdbd18919d6212808c779300799a2 Mon Sep 17 00:00:00 2001 From: brennobemoura <37243584+brennobemoura@users.noreply.github.com> Date: Sun, 25 Jun 2023 15:59:31 -0300 Subject: [PATCH] Fixed typo --- Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift b/Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift index 1a3cbd968..fc0879de3 100644 --- a/Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift +++ b/Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift @@ -510,7 +510,7 @@ internal final class HTTPBin where let responseEncoder = HTTPResponseEncoder() let requestDecoder = ByteToMessageHandler(HTTPRequestDecoder(leftOverBytesStrategy: .forwardBytes)) - let proxySimulator = HTTPProxySimulator(promise: promise, expectedAuhorization: expectedAuthorization) + let proxySimulator = HTTPProxySimulator(promise: promise, expectedAuthorization: expectedAuthorization) try sync.addHandler(responseEncoder) try sync.addHandler(requestDecoder) @@ -660,13 +660,13 @@ final class HTTPProxySimulator: ChannelInboundHandler, RemovableChannelHandler { // the promise to succeed, once the proxy connection is setup let promise: EventLoopPromise - let expectedAuhorization: String? + let expectedAuthorization: String? var head: HTTPResponseHead - init(promise: EventLoopPromise, expectedAuhorization: String?) { + init(promise: EventLoopPromise, expectedAuthorization: String?) { self.promise = promise - self.expectedAuhorization = expectedAuhorization + self.expectedAuthorization = expectedAuthorization self.head = HTTPResponseHead(version: .init(major: 1, minor: 1), status: .ok, headers: .init([("Content-Length", "0")])) } @@ -679,9 +679,9 @@ final class HTTPProxySimulator: ChannelInboundHandler, RemovableChannelHandler { return } - if let expectedAuhorization = self.expectedAuhorization { + if let expectedAuthorization = self.expectedAuthorization { guard let authorization = head.headers["proxy-authorization"].first, - expectedAuhorization == authorization else { + expectedAuthorization == authorization else { self.head.status = .proxyAuthenticationRequired return }