For now an artist may have no track to download
This commit is contained in:
@@ -52,6 +52,13 @@ namespace lms::ui
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
zipper = createZipper();
|
zipper = createZipper();
|
||||||
|
if (!zipper)
|
||||||
|
{
|
||||||
|
// no track, may be a legit case
|
||||||
|
response.setStatus(404);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
response.setMimeType("application/zip");
|
response.setMimeType("application/zip");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user