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

master
Andrew DeMaria 6 years ago
commit ce2a56e6f1
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 1
      airsonic-main/src/main/java/org/airsonic/player/service/PlayerService.java

@ -151,6 +151,7 @@ public class PlayerService {
String cookieName = COOKIE_NAME + "-" + StringUtil.utf8HexEncode(username);
Cookie cookie = new Cookie(cookieName, String.valueOf(player.getId()));
cookie.setMaxAge(COOKIE_EXPIRY);
cookie.setHttpOnly(true);
String path = request.getContextPath();
if (StringUtils.isEmpty(path)) {
path = "/";

Loading…
Cancel
Save