mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-10 22:45:55 +05:45
HTTPClient: changed header search to be case-insensitive (#2308)
This commit is contained in:
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"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user