Skip to content

Commit

Permalink
Merge pull request swiftlang#5087 from jiang7369/patch-1
Browse files Browse the repository at this point in the history
Correct spelling mistake: manDocumentURL -> mainDocumentURL
  • Loading branch information
itingliu authored Oct 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 7b5cd12 + b70557a commit b6de43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FoundationNetworking/HTTPCookieStorage.swift
Original file line number Diff line number Diff line change
@@ -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 }
}

0 comments on commit b6de43d

Please sign in to comment.