提交 2d6557e0 编写于 作者: xignzi006's avatar xignzi006 🇨🇳

更新 FeignRequestInterceptor.java.ftl

上级 b0972e7a
...@@ -32,6 +32,8 @@ public class FeignRequestInterceptor implements RequestInterceptor { ...@@ -32,6 +32,8 @@ public class FeignRequestInterceptor implements RequestInterceptor {
if (headerNames != null) { if (headerNames != null) {
while (headerNames.hasMoreElements()) { while (headerNames.hasMoreElements()) {
String name = headerNames.nextElement(); String name = headerNames.nextElement();
if(name.equalsIgnoreCase("transfer-encoding"))
continue;
String values = request.getHeader(name); String values = request.getHeader(name);
requestTemplate.header(name, values); requestTemplate.header(name, values);
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册