Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct Content-Disposition header to conform to RFC 2183 (date was n…

…ot inside quoted string - was breaking Chrome 16 compatibility)
  • Loading branch information...
commit 68db002a1e4212f309f80535b1ec68a53eaaa033 1 parent 1e581b5
RDeFreitas authored nberardi committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/Web/Mvc/SerializedView.cs
View
2  src/Web/Mvc/SerializedView.cs
@@ -140,7 +140,7 @@ public virtual void Render(ViewContext viewContext, TextWriter writer)
response.ContentEncoding = ContentEncoding;
response.AppendHeader("X-Robots-Tag", "noindex, follow, noarchive, nosnippet");
- response.AppendHeader("Content-Disposition", String.Format(DispositionType + "; filename={0}.{1}; creation-date={2:r}", action, ContentFileExtension, DateTime.UtcNow));
+ response.AppendHeader("Content-Disposition", String.Format(DispositionType + "; filename={0}.{1}; creation-date=\"{2:r}\"", action, ContentFileExtension, DateTime.UtcNow));
if (!request.IsSecureConnection)
response.Cache.SetCacheability(HttpCacheability.NoCache);
Please sign in to comment.
Something went wrong with that request. Please try again.