summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-09-03 06:22:52 (EDT)
committer dgao2012-09-03 06:22:52 (EDT)
commit271a13af6b3a90d3bf37cc45b18abedcfdad4900 (patch)
tree10a0f6355d5e9e89b97f506b5be64cc6138f0270
parentdeef452e0951165a9abe33015f0ea122a105e563 (diff)
downloadorg.eclipse.birt-271a13af6b3a90d3bf37cc45b18abedcfdad4900.zip
org.eclipse.birt-271a13af6b3a90d3bf37cc45b18abedcfdad4900.tar.gz
org.eclipse.birt-271a13af6b3a90d3bf37cc45b18abedcfdad4900.tar.bz2
Set the response header to "inline" instead of "attachment" if error occurs.
-rw-r--r--viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java b/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java
index f8e7621..5b5f92c 100644
--- a/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java
+++ b/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java
@@ -355,6 +355,7 @@ public class EngineFragment extends BirtBaseFragment
else
{
response.setContentType( "text/html; charset=utf-8" ); //$NON-NLS-1$
+ response.setHeader("Content-Disposition", "inline" ); //$NON-NLS-1$//$NON-NLS-2$
BirtUtility.appendErrorMessage( response.getOutputStream( ), e );
}
}