Skip to content

Commit

Permalink
Clean-up after the renaming of "cookiepack" into "token".
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Jul 27, 2016
1 parent f5b8a32 commit 619c96c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Expand Up @@ -42,6 +42,4 @@ public interface HttpMetadata extends CtxMetadata {

String TOKEN = "_token";

String COOKIPACK_SESSION = "_session_";

}
Expand Up @@ -84,7 +84,7 @@ public static Map<String, Serializable> initAndDeserializeTOKEN(Req req) {
}
}

public static void saveCookipackBeforeRenderingHeaders(Req req, Map<String, Serializable> tokenData) {
public static void saveTokenBeforeRenderingHeaders(Req req, Map<String, Serializable> tokenData) {
String token = token(tokenData);
req.response().cookie(TOKEN, token, "path=/", "HttpOnly");
}
Expand Down
Expand Up @@ -420,7 +420,7 @@ private void startResponse(int code, boolean unknownContentLength) {
MediaType contentType = MediaType.HTML_UTF_8;

if (token != null) {
HttpUtils.saveCookipackBeforeRenderingHeaders(this, token);
HttpUtils.saveTokenBeforeRenderingHeaders(this, token);
}

if (session != null) {
Expand Down

0 comments on commit 619c96c

Please sign in to comment.