We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38b3d4 commit a00907aCopy full SHA for a00907a
app/src/main/java/project/server/app/common/utils/HeaderUtils.java
@@ -1,8 +1,6 @@
1
package project.server.app.common.utils;
2
3
-import java.util.Map;
4
-import project.server.mvc.servlet.http.Cookie;
5
-import project.server.mvc.servlet.http.Cookies;
+import project.server.mvc.servlet.http.*;
6
7
public final class HeaderUtils {
8
@@ -13,8 +11,7 @@ private HeaderUtils() {
13
11
}
14
12
15
public static Long getSessionId(Cookies cookies) {
16
- Map<String, Cookie> cookiesMap = cookies.getCookiesMap();
17
- Cookie findCookie = cookiesMap.get(SESSION_ID);
+ Cookie findCookie = cookies.get(SESSION_ID);
18
if (findCookie != null) {
19
return extractSessionId(findCookie);
20
0 commit comments