Merge remote-tracking branch 'origin/pr/1033'

This commit is contained in:
Andrew DeMaria
2019-05-23 10:45:07 -06:00
@@ -151,6 +151,7 @@ public class PlayerService {
String cookieName = COOKIE_NAME + "-" + StringUtil.utf8HexEncode(username); String cookieName = COOKIE_NAME + "-" + StringUtil.utf8HexEncode(username);
Cookie cookie = new Cookie(cookieName, String.valueOf(player.getId())); Cookie cookie = new Cookie(cookieName, String.valueOf(player.getId()));
cookie.setMaxAge(COOKIE_EXPIRY); cookie.setMaxAge(COOKIE_EXPIRY);
cookie.setHttpOnly(true);
String path = request.getContextPath(); String path = request.getContextPath();
if (StringUtils.isEmpty(path)) { if (StringUtils.isEmpty(path)) {
path = "/"; path = "/";