修正OpenFeign部分情况下传递header认证信息为空问题 #https://gitee.com/y_project/RuoYi-Cloud/issues/I5AGRR

pull/196/head
我以为 3 years ago committed by Gitee
parent fca189fa73
commit d6e6b99316
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -142,7 +142,7 @@ public class ServletUtils
public static Map<String, String> getHeaders(HttpServletRequest request) public static Map<String, String> getHeaders(HttpServletRequest request)
{ {
Map<String, String> map = new LinkedHashMap<>(); Map<String, String> map = new LinkedCaseInsensitiveMap<>();
Enumeration<String> enumeration = request.getHeaderNames(); Enumeration<String> enumeration = request.getHeaderNames();
if (enumeration != null) if (enumeration != null)
{ {

Loading…
Cancel
Save