コード例 #1
0
 // Token: 0x06000718 RID: 1816 RVA: 0x000378E4 File Offset: 0x00035AE4
 private static void SetAttachmentResponseHeaders(HttpContext httpContext, string fileName, string contentType, bool isInline, AttachmentPolicy.Level level)
 {
     if (level == AttachmentPolicy.Level.ForceSave)
     {
         httpContext.Response.AppendHeader("X-Download-Options", "noopen");
     }
     AttachmentUtility.SetContentDispositionResponseHeader(httpContext, fileName, isInline);
     httpContext.Response.AppendHeader("Content-Type", contentType + "; authoritative=true;");
     if (isInline && OwaContext.Current.UserContext.IsPublicLogon)
     {
         Utilities.MakePageNoCacheNoStore(httpContext.Response);
         return;
     }
     httpContext.Response.Cache.SetExpires(AttachmentUtility.GetAttachmentExpiryDate());
 }