mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Remove code that sets User-Agent header — because it’s already set for the URLSession.
This commit is contained in:
1 parent
83840bd889
commit
0ab4eac333
1 file changed
+1
-1
@@ -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