我如何更改 WSO2 API 管理器中的 User-Agent Header
How i can change the User-Agent Header in WSO2 API Manager
WSO2 APIM 有默认的 User-Agent header 即:
Synapse-PT-HttpComponents-NIO
我想将其更改为其他内容,所以我添加了 header 来自发布者的调解 运行 时间配置但没有运气,我也尝试添加这一行 http.user.agent.preserve=true
passthru-http.properties
正如很多人所说,但每当我重新启动服务器时,它就会从文件中删除。
我怎样才能完成它?
我正在使用 wso2am-3.2.0
在 APIM 3.2.0 中,我们使用 deployment.toml
文件来 add/modify 配置。如果您直接编辑配置文件,它会在服务器启动期间被 deployment.toml 中的配置覆盖。尝试在 <APIM_HOME>/repository/conf/
中的 deployment.toml
中添加以下值
[passthru_http]
'http.user.agent.preserve'=true
WSO2 APIM 有默认的 User-Agent header 即:
Synapse-PT-HttpComponents-NIO
我想将其更改为其他内容,所以我添加了 header 来自发布者的调解 运行 时间配置但没有运气,我也尝试添加这一行 http.user.agent.preserve=true
passthru-http.properties
正如很多人所说,但每当我重新启动服务器时,它就会从文件中删除。
我怎样才能完成它? 我正在使用 wso2am-3.2.0
在 APIM 3.2.0 中,我们使用 deployment.toml
文件来 add/modify 配置。如果您直接编辑配置文件,它会在服务器启动期间被 deployment.toml 中的配置覆盖。尝试在 <APIM_HOME>/repository/conf/
deployment.toml
中添加以下值
[passthru_http]
'http.user.agent.preserve'=true