From b70557a014249fa6b3625759bc89c7d9904add01 Mon Sep 17 00:00:00 2001 From: jiang7369 Date: Sun, 22 Sep 2024 19:24:19 +0800 Subject: [PATCH] Correct spelling mistake: manDocumentURL -> mainDocumentURL --- Sources/FoundationNetworking/HTTPCookieStorage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FoundationNetworking/HTTPCookieStorage.swift b/Sources/FoundationNetworking/HTTPCookieStorage.swift index 8881f59eee..8f78c6ca8c 100644 --- a/Sources/FoundationNetworking/HTTPCookieStorage.swift +++ b/Sources/FoundationNetworking/HTTPCookieStorage.swift @@ -311,7 +311,7 @@ open class HTTPCookieStorage: NSObject, @unchecked Sendable { if mainDocumentURL != nil && cookieAcceptPolicy == .onlyFromMainDocumentDomain { guard let mainDocumentHost = mainDocumentURL?.host?.lowercased() else { return } - //the url.host must be a suffix of manDocumentURL.host, this is based on Darwin's behaviour + //the url.host must be a suffix of mainDocumentURL.host, this is based on Darwin's behaviour guard mainDocumentHost.hasSuffix(urlHost) else { return } }