如何在restlet api(通过camel)中正确设置标头以防止警告:"添加标准标题" Pragma"气馁..."

时间:2017-11-12 10:25:48

标签: java apache-camel restlet

直接设置http标头而不是通过restlet api设置http标头似乎不鼓励"。我正在使用camel-restlet间接使用restlet。

我需要设置一些标题:

[WARN ] 2017-11-11 23:50:36.230 [Restlet-14633842] LogFilter - Addition of the standard header "Pragma" is discouraged as a future version of the Restlet API will directly support it.

问题是每次请求都会收到警告: {{1}}

但是如何设置" Pragma"正确标题以防止此警告?

我正在使用骆驼2.20.0。我最近因为https://issues.apache.org/jira/browse/CAMEL-10665

而更新了

这解决了许多警告。

0 个答案:

没有答案
相关问题