private static SetContentType ( |
||
context | /// The context. /// | |
fileName | string | /// The file Name. /// |
return | void |
private static void SetContentType(HttpContext context, string fileName)
{
context.Response.AddHeader(
"Content-Type", fileName.EndsWith(".pdf") ? "application/pdf" : "application/octet-stream");
}