Commit 623ba598 by wangnb

包活干V2.0.1:微服务请求头问题处理--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28680 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent d7abbe5d
...@@ -153,10 +153,6 @@ ...@@ -153,10 +153,6 @@
<artifactId>feign-okhttp</artifactId> <artifactId>feign-okhttp</artifactId>
<version>10.1.0</version> <version>10.1.0</version>
</dependency>--> </dependency>-->
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-httpclient</artifactId>
</dependency>
<!-- websocket --> <!-- websocket -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -30,8 +30,7 @@ public class FeignConfiguration implements RequestInterceptor{ ...@@ -30,8 +30,7 @@ public class FeignConfiguration implements RequestInterceptor{
String name = headerNames.nextElement(); String name = headerNames.nextElement();
if (Constants.REQUEST_COOKIE_KEY.equalsIgnoreCase(name) if (Constants.REQUEST_COOKIE_KEY.equalsIgnoreCase(name)
|| "content-length".equalsIgnoreCase(name) || "content-length".equalsIgnoreCase(name)
|| "content-type".equalsIgnoreCase(name) || "content-type".equalsIgnoreCase(name)) {
|| "Content-Type".equalsIgnoreCase(name)) {
continue; continue;
} }
if (Constants.USER_TOKEN_KEY.equalsIgnoreCase(name)) { if (Constants.USER_TOKEN_KEY.equalsIgnoreCase(name)) {
......
...@@ -19,4 +19,3 @@ spring.main.allow-bean-definition-overriding=true ...@@ -19,4 +19,3 @@ spring.main.allow-bean-definition-overriding=true
##\u65E5\u5FD7 test ##\u65E5\u5FD7 test
logging.level.com.glsx.ordercenter=DEBUG logging.level.com.glsx.ordercenter=DEBUG
logging.path=/data/java_log/jetty/carService/car-service-ordercenter logging.path=/data/java_log/jetty/carService/car-service-ordercenter
\ No newline at end of file \ No newline at end of file
feign.httpclient.enabled=true
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!