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.
我这里手机用的 Via 浏览器打不开,用 DevTools 看了下是 WebView 目前对 brotli 的支持还是实验性的,需要改 flag 设置。
将 common/proxy.go 里的 modifyBrBody 函数的返回从 brotli 改成 gzip 之后,Via 浏览器就可以正常访问了。
理论上其他调用 WebView 的浏览器应该也会正常访问。
可能的相关 Issue:
#40 #46 #77 #80
相关参考:
https://stackoverflow.com/questions/65138909/how-to-enable-brotli-compression-on-android-system-webview