You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/08 00:57:56 UTC

[GitHub] [apisix-java-plugin-runner] zhlu001 commented on issue #219: help request: How to dynamic add/remove headers in "ext-plugin" with Java Runner

zhlu001 commented on issue #219:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/219#issuecomment-1341820916

   Hi tzssanglass,
   Thanks for your reply, we've tried. it doesn't work. 
   client  (original 10 header)--> plugin (add 2 headers) -> upstream(still 10 headers)
   
   we debugged following. in the plugin operated header does not impact original headers, 
   request.setHeader
   request.getHeaders().put()
   request.getHeaders().clear()
   
   
   In above debugger info, We noticed that line 223 in the "RpcCallHandler" in the "org.apache.apisix.plugin.runner.handler";package
   still using the original request, even the ext-plugin add or remove the header


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org