mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove code that sets User-Agent header — because it’s already set for the URLSession.
This commit is contained in:
@@ -214,7 +214,7 @@ private extension DownloadSession {
|
||||
}
|
||||
}
|
||||
|
||||
requestToUse.addValue(UserAgent.fromInfoPlist, forHTTPHeaderField: HTTPRequestHeader.userAgent)
|
||||
requestToUse.httpShouldHandleCookies = false
|
||||
|
||||
let task = urlSession.dataTask(with: requestToUse)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user