mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 16:26:04 +00:00
Use browser agent UA for image and theme downloads. Fixes #4868.
This commit is contained in:
1 parent
8b89354eb5
commit
75755af700
15 files changed
+146
-78
No files matched your search
@@ -117,7 +117,7 @@ nonisolated private extension HTMLMetadataDownloader {
|
||||
activityLog.didStart(.htmlMetadataDownloader, kind: kind)
|
||||
|
||||
do {
|
||||
let downloadResponse = try await Downloader.shared.download(actualURL)
|
||||
let downloadResponse = try await Downloader.shared.download(actualURL, userAgentStyle: .browser)
|
||||
|
||||
if let data = downloadResponse.data, !data.isEmpty, let response = downloadResponse.response, response.statusIsOK {
|
||||
let urlToUse = response.url ?? actualURL
|
||||
|
||||
Reference in new issue
Block a user