Commit 8ba010e7 by wangnb

包活干V2.1.0:feign调用问题修改--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28889 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 16a9fb25
......@@ -68,7 +68,7 @@
</exclusion>
</exclusions>
</dependency>-->
<dependency>
<!--<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-feign</artifactId>
<version>1.0-SNAPSHOT</version>
......@@ -78,7 +78,7 @@
<artifactId>rest-admin-exception</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>-->
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-mybatis</artifactId>
......@@ -90,11 +90,11 @@
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<!--<dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>2.2.1.RELEASE</version>
</dependency>-->
</dependency>
<!-- SpringBoot Redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
......@@ -158,11 +158,11 @@
</exclusions>
</dependency>
<!-- feign-okhttp依赖 -->
<!--<dependency>
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-okhttp</artifactId>
<version>10.1.0</version>
</dependency>-->
</dependency>
<!-- websocket -->
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -29,7 +29,7 @@ public class FeignConfiguration implements RequestInterceptor{
while (headerNames.hasMoreElements()) {
String name = headerNames.nextElement();
if (Constants.REQUEST_COOKIE_KEY.equalsIgnoreCase(name)
|| "content-length".equalsIgnoreCase(name) || "content-type".equalsIgnoreCase(name)) {
|| "content-length".equalsIgnoreCase(name)) {
continue;
}
if (Constants.USER_TOKEN_KEY.equalsIgnoreCase(name)) {
......@@ -38,7 +38,6 @@ public class FeignConfiguration implements RequestInterceptor{
template.header(name, request.getHeader(name));
}
template.header(Constants.REQUEST_COOKIE_KEY, token);
template.header("Transfer-Encoding", "chunked");
logger.info("feign interceptor header:{}",template);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!