Tencent / VasSonic

VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

有关UserAgent后面的Sonic/2.0.0的问题

heroszcy opened this issue · comments

commented

What steps will reproduce the problem?
该问题的重现步骤是什么?

  1. 使用sonic框架加载H5页面
  2. 抓包
  3. 发现请求的UserAgent后面会带一个Sonic/2.0.0

What is the expected output? What do you see instead?
你期待的结果是什么?实际看到的又是什么?
期望请求的UserAgent为重写SonicRuntime.getUserAgent()方法返回的内容;
实际会在后面附加一个Sonic/2.0.0。

What version of the product are you using? On what operating system?
你正在使用产品的哪个版本?在什么操作系统上?

2.0.0版本,安卓系统
Please provide any additional information below.
如果有的话,请在下面提供更多信息。

不知道是处于什么考虑要在后面加上Sonic/2.0.0,有什么方法可以除去掉呢?