Преглед на файлове

refresh token not signature

huodongdong преди 7 години
родител
ревизия
8b7fc151e6
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      rankin-api-web/src/main/java/cn/rankin/apiweb/intercepter/RequestSignatureInterceptor.java

+ 2 - 1
rankin-api-web/src/main/java/cn/rankin/apiweb/intercepter/RequestSignatureInterceptor.java

@@ -64,7 +64,8 @@ public class RequestSignatureInterceptor implements HandlerInterceptor {
 
         //登录请求不拦截
         String path = request.getServletPath();
-        if (ignorePaths.contains(path) && HttpMethod.POST.matches(request.getMethod())) {
+        if (ignorePaths.contains(path) && (HttpMethod.POST.matches(request.getMethod()) ||
+                HttpMethod.PUT.matches(request.getMethod()))) {
             logger.info("url: {} do not intercepted!");
             return true;
         }