1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 17:17:02 +00:00

fixed disabling of app.js cache.

This commit is contained in:
Keivan Beigi 2013-07-15 11:25:16 -07:00
parent 9a5b700671
commit 8f37507ea1

View file

@ -1,3 +1,4 @@
using System;
using Nancy;
using NzbDrone.Api.Extensions;
using NzbDrone.Common.EnvironmentInfo;
@ -19,7 +20,7 @@ public void ToResponse(Request request, Response response)
return;
}
if (request.Url.Path.ToLower() == "app.js")
if (request.Url.Path.EndsWith("app.js", StringComparison.CurrentCultureIgnoreCase))
{
response.Headers.DisableCache();
return;