// Token: 0x06000335 RID: 821 RVA: 0x0000CCC4 File Offset: 0x0000AEC4 private static void SetZipContentDispositionResponseHeader(IAttachmentWebOperationContext webOperationContext, string fileName) { bool chrome = webOperationContext.UserAgent.IsBrowserChrome(); string str = AttachmentUtilities.ToHexString(fileName, chrome); webOperationContext.Headers["Content-Disposition"] = "filename=" + str; }
// Token: 0x0600010B RID: 267 RVA: 0x000046F0 File Offset: 0x000028F0 private void WriteContentDispositionResponseHeader(string fileName, bool isInline) { bool chrome = this.webOperationContext.UserAgent.IsBrowserChrome(); string text = AttachmentUtilities.ToHexString(fileName, chrome); string value = string.Empty; if (this.webOperationContext.UserAgent.IsBrowserFirefox()) { value = string.Format(CultureInfo.InvariantCulture, (this.webOperationContext.UserAgent.BrowserVersion.Build >= 8) ? "{0}; filename*=UTF-8''{1}" : "{0}; filename*=\"{1}\"", new object[] { isInline ? "inline" : "attachment", text }); } else { value = string.Format(CultureInfo.InvariantCulture, "{0}; filename=\"{1}\"", new object[] { isInline ? "inline" : "attachment", text }); } this.webOperationContext.Headers["Content-Disposition"] = value; }