fix skiasharp reference

This commit is contained in:
Luke Pulverenti
2017-09-01 15:24:39 -04:00
parent dd9404ebc6
commit 9d78482358
5 changed files with 52 additions and 40 deletions

View File

@@ -424,11 +424,14 @@ namespace Emby.Server.Implementations.HttpServer
options.ResponseHeaders = options.ResponseHeaders ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
// Quotes are valid in linux. They'll possibly cause issues here
var filename = (Path.GetFileName(path) ?? string.Empty).Replace("\"", string.Empty);
if (!string.IsNullOrWhiteSpace(filename))
if (!options.ResponseHeaders.ContainsKey("Content-Disposition"))
{
options.ResponseHeaders["Content-Disposition"] = "inline; filename=\"" + filename + "\"";
// Quotes are valid in linux. They'll possibly cause issues here
var filename = (Path.GetFileName(path) ?? string.Empty).Replace("\"", string.Empty);
if (!string.IsNullOrWhiteSpace(filename))
{
options.ResponseHeaders["Content-Disposition"] = "inline; filename=\"" + filename + "\"";
}
}
return GetStaticResult(requestContext, options);