Commit 214389be by 袁伟铭

添加区域年份统计定时任务

parent aa068dd6
......@@ -15,9 +15,15 @@ import java.util.List;
public class FeignConfig {
private static final List<String> HEADERS_TO_TRY = Arrays.asList(
"X-Forwarded-For",
"Proxy-Client-IP",
"WL-Proxy-Client-IP",
"AUTHORIZATION",
"FORWARDED",
"X-FORWARDED-FOR",
"X-FORWARDED-PROTO",
"X-FORWARDED-PORT",
"X-FORWARDED-HOST",
"HOST",
"PROXY-CLIENT-IP",
"WL-PROXY-CLIENT-IP",
"HTTP_X_FORWARDED_FOR",
"HTTP_X_FORWARDED",
"HTTP_X_CLUSTER_CLIENT_IP",
......@@ -26,7 +32,7 @@ public class FeignConfig {
"HTTP_FORWARDED",
"HTTP_VIA",
"REMOTE_ADDR",
"X-Real-IP");
"X-REAL-IP");
/**
* 解决fein远程调用丢失请求头
......@@ -48,7 +54,7 @@ public class FeignConfig {
if (name.equals("content-length")) {
continue;
}
if (HEADERS_TO_TRY.contains(name)) {
if (HEADERS_TO_TRY.contains(name.toUpperCase())) {
String values = request.getHeader(name);
template.header(name, values);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment