You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/08/08 01:23:13 UTC

[GitHub] [skywalking] whfjam commented on issue #5265: question about the enhancement of httpclient3.0

whfjam commented on issue #5265:
URL: https://github.com/apache/skywalking/issues/5265#issuecomment-670803188


   > Do you have a suggested way? Are you re-use the http method?
   
   em... i mean in my situation  the service is just like a proxy one ,like serviceA-proxyService-serviceB  ,in the proxyService it will keep all of the headers from serviceA includes the "sw8" ,but it used the HttpClient3.0 component to resend the request to serviceB,the class "org.apache.skywalking.apm.plugin.httpclient.v3.HttpClientExecuteInterceptor" it used the "httpMethod.addRequestHeader" to  deliver the new sw8 header but it won’t override the old one from serviceA i modified it to httpMethod.setRequestHeader just like the code in the enhancement of httpclient4.0


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

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