Skip to content
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

new HttpDns() lookup 正常返回List<InetAddress>,但是最终发出去的请求并没有被替换host,这是为什么 #6

Open
Z644912187 opened this issue Nov 24, 2016 · 1 comment

Comments

@Z644912187
Copy link

new OkHttpClient.Builder()
.dns(new HttpDns())
.addInterceptor(new HeadInterceptor())
.addInterceptor(new TokenInterceptor())
.readTimeout(TIME_OUT, TimeUnit.MILLISECONDS)
.cache(cache)
.build();
new HttpDns() lookup 正常返回List,但是最终发出去的请求并没有被替换host,这是为什么

@miao1007
Copy link
Owner

可以在Interceptor 与 networkInterceptor中 打断点调测一下。不太明白你的Host是什么意思,本来HTTP请求就不用替换Host。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants