-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] ExtendedNetworkImageProvider的headers bug #597
Comments
popsams
changed the title
[Bug report]
[Bug report] ExtendedNetworkImageProvider的headers bug
Jul 13, 2023
这是官方的逻辑吧。你先给官方提issue |
好的 |
官方给了这个方案,意思就是在使用HttpClient的时候,自己自定义覆盖掉默认的ua,所以请大佬看下,估计还得您那里稍微修改下使用HttpClient的逻辑,自定义覆盖掉ua,根据用户传什么就是什么,不默认加其他内容 |
大佬,您说自己设置一下的意思是我这边拉项目代码改好了提交,还是说我把源码加入项目里单独修改自己用就行,自己修改后面不能和你这边同步更新了 按照官方意思把 HttpClient 的 userAgent 设置空就行,您可以改一下吗,就一行代码 |
这是一个静态属性呢。。你拿到自己设置下 ua 不就好了 |
好的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
8.0.2
Platforms
dart, Android
Device Model
Galaxy S23
flutter info
How to reproduce?
ExtendedNetworkImageProvider的headers默认会把 “Dart3.0” 加到user-agent里面了,导致有些图片来源检测到了是dart的user-agent,直接返回forbidden了,辛苦作者可以优化一下吗,headers传的是什么就是什么,别默认加入其他的默认内容,感谢了
The headers of ExtendedNetworkImageProvider default to adding "Dart3.0" to the user agent, resulting in some image sources detecting it as Dart's user agent and returning it directly to Forbidden. Can the author optimize it? The headers are what they pass, so don't add other default content by default. Thank you
Logs
No response
Example code (optional)
No response
Contact
No response
The text was updated successfully, but these errors were encountered: