!196 修正OpenFeign部分情况下传递header中Authorization参数值为空导致获取用户信息失败问题

Merge pull request !196 from JellyBins/N/A
pull/197/MERGE
若依 2 years ago committed by Gitee
commit 9b35679ba6
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