Merge branch 'master' into feature/files
This commit is contained in:
commit
9282ffbbf1
@ -34,7 +34,6 @@ using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
using ASC.Common;
|
||||
using ASC.Common.Web;
|
||||
using ASC.Core;
|
||||
using ASC.Security.Cryptography;
|
||||
|
||||
@ -134,8 +133,16 @@ namespace ASC.Data.Storage.DiscStorage
|
||||
if (string.IsNullOrEmpty(toCopy)) continue;
|
||||
context.Response.Headers[toCopy] = h.Substring(toCopy.Length + 1);
|
||||
}
|
||||
|
||||
//try
|
||||
//{
|
||||
// context.Response.ContentType = MimeMapping.GetMimeMapping(path);
|
||||
//}
|
||||
//catch (Exception e)
|
||||
//{
|
||||
// var a = 0;
|
||||
//}
|
||||
|
||||
context.Response.ContentType = MimeMapping.GetMimeMapping(path);
|
||||
if (encoding != null)
|
||||
context.Response.Headers["Content-Encoding"] = encoding;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user