HTTPClient: changed header search to be case-insensitive (#2308)

This commit is contained in:
NachoSoto authored and GitHub committed 2023-02-22 11:30:20 -08:00
1 parent 457ba021d9
commit c5f963e4fa
7 files changed
+80 -7

No files matched your search

@@ -17,8 +17,8 @@ import Foundation
class HTTPClient {
typealias RequestHeaders = [String: String]
typealias ResponseHeaders = [AnyHashable: Any]
typealias RequestHeaders = HTTPRequest.Headers
typealias ResponseHeaders = HTTPResponse<HTTPEmptyResponseBody>.Headers
typealias Completion<Value: HTTPResponseBody> = (HTTPResponse<Value>.Result) -> Void
let systemInfo: SystemInfo
@@ -82,7 +82,7 @@ extension HTTPClient {
static let authorizationHeaderName = "Authorization"
static let nonceHeaderName = "X-Nonce"
static let responseSignatureHeaderName = "x-signature"
static let responseSignatureHeaderName = "X-Signature"
}