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 2021/11/25 01:29:36 UTC

[GitHub] [apisix-java-plugin-runner] alexchan10241 opened a new issue #86: request help: How can I remove unwanted headers or args via java plugin runner?

alexchan10241 opened a new issue #86:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/86


   ### Issue description
   
   request help: How can I remove unwanted headers or args via java plugin runner?I try to remove headers that I want to delete by using 'request.setHeader and request.setArg' in java plugin runner.But,it didn't work .Actually,the headers or args still pass to the upstream.I think maybe there is a merge operation when hiting a router.Is there any solution to handle this case.Thanks a lot!
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
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



[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #86: request help: How can I remove unwanted headers or args via java plugin runner?

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #86:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/86#issuecomment-978727796


   see: https://github.com/apache/apisix-java-plugin-runner/blob/fa909b851270bb258ee60d1248d3331a3814d139/runner-plugin-sdk/src/main/java/org/apache/apisix/plugin/runner/HttpRequest.java#L183-L184
   
   and https://github.com/apache/apisix-java-plugin-runner/blob/main/runner-plugin-sdk/src/main/java/org/apache/apisix/plugin/runner/HttpRequest.java#L251-L252
   
   `delete existing header` in Line 251 -> `delete existing arg`


-- 
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



[GitHub] [apisix-java-plugin-runner] alexchan10241 commented on issue #86: request help: How can I remove unwanted headers or args via java plugin runner?

Posted by GitBox <gi...@apache.org>.
alexchan10241 commented on issue #86:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/86#issuecomment-978728865


   OMG!!! I overlooked it.And it did work! Thanks a lot! 


-- 
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



[GitHub] [apisix-java-plugin-runner] tzssangglass edited a comment on issue #86: request help: How can I remove unwanted headers or args via java plugin runner?

Posted by GitBox <gi...@apache.org>.
tzssangglass edited a comment on issue #86:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/86#issuecomment-978727796


   see: https://github.com/apache/apisix-java-plugin-runner/blob/fa909b851270bb258ee60d1248d3331a3814d139/runner-plugin-sdk/src/main/java/org/apache/apisix/plugin/runner/HttpRequest.java#L183-L184
   
   and https://github.com/apache/apisix-java-plugin-runner/blob/fa909b851270bb258ee60d1248d3331a3814d139/runner-plugin-sdk/src/main/java/org/apache/apisix/plugin/runner/HttpRequest.java#L251-L252
   
   `delete existing header` in Line 251 -> `delete existing arg`


-- 
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



[GitHub] [apisix-java-plugin-runner] alexchan10241 closed issue #86: request help: How can I remove unwanted headers or args via java plugin runner?

Posted by GitBox <gi...@apache.org>.
alexchan10241 closed issue #86:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/86


   


-- 
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