diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-14 23:46:51 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-14 23:46:51 -0500 |
| commit | 47005468752c3d981635cecce71d8c24c2d9df55 (patch) | |
| tree | b1d4b2835296f398f040d0e07d0d67e091c16e54 /MediaBrowser.Server.Implementations | |
| parent | 1551ae6566009dc516ee8272ff7b1cd1e9ae751d (diff) | |
update migration process
Diffstat (limited to 'MediaBrowser.Server.Implementations')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs | 13 | ||||
| -rw-r--r-- | MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs | 2 |
2 files changed, 5 insertions, 10 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs index a11eb3aaa..e69ff367a 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs @@ -350,16 +350,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer if (!string.IsNullOrWhiteSpace(GlobalResponse)) { - if (string.Equals(GetExtension(urlString), "html", StringComparison.OrdinalIgnoreCase)) - { - httpRes.Write(GlobalResponse); - httpRes.ContentType = "text/plain"; - } - else - { - httpRes.StatusCode = 503; - } + httpRes.StatusCode = 503; + httpRes.ContentType = "text/html"; + httpRes.Write(GlobalResponse); + httpRes.Close(); return Task.FromResult(true); } diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs index 9d6343568..a85872951 100644 --- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs +++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs @@ -80,7 +80,7 @@ namespace MediaBrowser.Server.Implementations.Persistence private IDbCommand _updateInheritedRatingCommand; - private const int LatestSchemaVersion = 45; + private const int LatestSchemaVersion = 48; /// <summary> /// Initializes a new instance of the <see cref="SqliteItemRepository"/> class. |
