diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-10-02 02:20:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-02 02:20:16 -0400 |
| commit | 696cdf27377013cc9237f0ad0ac0614f2ff1cd59 (patch) | |
| tree | 39f835c844b44ce43ad5a967ce4854c5263d83ed /MediaBrowser.Server.Implementations/HttpServer | |
| parent | 8d486444c9b72704f35153f07affd41c67df19a8 (diff) | |
| parent | cf4f5039bffa504b65569e2be5b2711e803e105b (diff) | |
Merge pull request #2207 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs index c55e98388..04085d3c7 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -93,12 +93,14 @@ namespace MediaBrowser.Server.Implementations.HttpServer } } } - - if (responseHeaders != null) + if (responseHeaders == null) { - AddResponseHeaders(result, responseHeaders); + responseHeaders = new Dictionary<string, string>(); } + responseHeaders["Expires"] = "-1"; + AddResponseHeaders(result, responseHeaders); + return result; } |
