Permalink
Browse files

changed service response from inline to attachment

  • Loading branch information...
1 parent d771ea8 commit 8674b6bae0bb8372523184c4a8cc93aa5d025991 @nberardi nberardi committed May 3, 2011
Showing with 4 additions and 3 deletions.
  1. +0 −1 ManagedFusion.Web.msbuild
  2. +3 −1 src/ManagedFusion.Web.csproj
  3. +1 −1 src/Web/Mvc/SerializedView.cs
@@ -2,7 +2,6 @@
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<UsingTask TaskName="NUnitTeamCity" AssemblyFile="$(teamcity_dotnet_nunitlauncher_msbuild_task)" />
- <UsingTask AssemblyFile="$(MSBuildExtensionsPath)\NuGet\NuGet.MSBuild.dll" TaskName="NuGet.MSBuild.NuGet" />
<ItemGroup>
<MainProjects Include="src\**\*.csproj" />
@@ -153,7 +153,9 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
- <None Include="ManagedFusion.Web.nuspec" />
+ <None Include="ManagedFusion.Web.nuspec">
+ <SubType>Designer</SubType>
+ </None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
@@ -142,7 +142,7 @@ public virtual void Render(ViewContext viewContext, TextWriter writer)
response.Cache.SetExpires(DateTime.Today.AddDays(-1D));
response.AppendHeader("X-Robots-Tag", "noindex, follow, noarchive, nosnippet");
- response.AppendHeader("Content-Disposition", String.Format("inline; filename={0}.{1}; creation-date={2:r}", action, ContentFileExtension, DateTime.UtcNow));
+ response.AppendHeader("Content-Disposition", String.Format("attachment; filename={0}.{1}; creation-date={2:r}", action, ContentFileExtension, DateTime.UtcNow));
if (!request.IsSecureConnection)
{

0 comments on commit 8674b6b

Please sign in to comment.