最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - Cronet drops "host" request header automatically - Stack Overflow

programmeradmin3浏览0评论

I'm using a custom "Host" header in my requests. When using the Cronet engine, I see in the netlog that my custom "Host" header is dropped. The same does not happen with OkHttpClient.

At HTTP_CACHE_CALLER_REQUEST_HEADERS step, I still see the header. However, at HTTP_TRANSACTION_HTTP2_SEND_REQUEST_HEADERS, it's gone.

Is there a reason why Cronet drops this header and is there a way to specify that it shouldn't? I'm running embedded Cronet 119.6045.31 on Android 14.

发布评论

评论列表(0)

  1. 暂无评论