Properly handled http headers for subsonic API. ref #119

This commit is contained in:
emeric
2021-03-05 13:23:47 +01:00
parent cc28d893f5
commit 1b49e8f6a6
13 changed files with 149 additions and 102 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ getStreamParameters(RequestContext& context)
}
{
const User::pointer user {User::getByLoginName(context.dbSession, context.userName)};
const User::pointer user {User::getById(context.dbSession, context.userId)};
if (!user)
throw UserNotAuthorizedError {};