In Java 11 HttpClient how to solve restricted header name: Date

﹥>﹥吖頭↗ 提交于 2019-12-01 04:31:20

Bug#JDK-8213189

This is a bug registered in current JDK's http-client implementation where Date is categorized as a restricted header as well.

In JDK/12, there would be a provision for other such restricted headers to be allowed using the attribute:

-jdk.httpclient.allowRestrictedHeaders
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!