Skip to content

Commit

Permalink
根据cookie名获取对应cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix committed Mar 1, 2016
1 parent 58f51d3 commit a6b1342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/springside/modules/web/Servlets.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public static String encodeHttpBasic(String userName, String password) {
/**
* 根据cookie名获取对应cookie.
*/
public Optional<Cookie> getCookie(HttpServletRequest request, String cookieName) {
public static Optional<Cookie> getCookie(HttpServletRequest request, String cookieName) {
Cookie[] cookies = request.getCookies();
if (cookies == null) {
return Optional.empty();
Expand Down

0 comments on commit a6b1342

Please sign in to comment.