fix: remove electron's default user-agent keep browser user agent #356
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
这个 PR 移除了桌面端应用的默认 user-agent 中的
Electron
和Follow
信息,让它和浏览器保持一致。因为有些反爬严格的网站会检测 UA 信息,比如来自 javdb (NSFW) 的图片,就会导致图片无法加载。
e.g:
https://c0.jdbstatic.com/covers/j0/J00qzx.jpg
(NSFW)不确定修改全局的 UA 是否合适,如果不合适就把 PR 关闭掉吧 :)
Linked Issues
#355
Additional context