未验证 提交 fdd242ed 编写于 作者: W whfjam 提交者: GitHub

Update HttpClientExecuteInterceptor.java (#5283)

use the  method httpMethod.setRequestHeader to set the new skywalking headers,so that it can override the exits headers if there is any
Co-authored-by: wu-sheng's avatar吴晟 Wu Sheng <wu.sheng@foxmail.com>
上级 69297b9e
......@@ -65,7 +65,7 @@ public class HttpClientExecuteInterceptor implements InstanceMethodsAroundInterc
for (CarrierItem next = contextCarrier.items(); next.hasNext(); ) {
next = next.next();
httpMethod.addRequestHeader(next.getHeadKey(), next.getHeadValue());
httpMethod.setRequestHeader(next.getHeadKey(), next.getHeadValue());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册