Fix header
This commit is contained in:
@@ -411,7 +411,8 @@ namespace Step.Controllers.WebApi
|
||||
// Set header content type
|
||||
var contentType = ContentType ?? MimeMapping.GetMimeMapping(Path.GetExtension(FilePath));
|
||||
response.Content.Headers.ContentType = new MediaTypeHeaderValue(contentType);
|
||||
response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment")
|
||||
|
||||
response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("inline")
|
||||
{
|
||||
FileName = FileName
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user