changeset 5607:6e0d122904f9

Explicitly set the content type for the pdf download. This should make the mimetype detection of browsers more robust
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 09 Apr 2013 11:53:47 +0200 (2013-04-09)
parents 0d8564196d73
children 62513c9183ba
files flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java	Tue Apr 09 11:51:29 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java	Tue Apr 09 11:53:47 2013 +0200
@@ -396,6 +396,7 @@
                     int r;
                     resp.setHeader("Content-Disposition",
                             "attachment;filename=flys-karte.pdf");
+                    resp.setContentType("application/pdf");
                     while ((r = in.read(buf)) >= 0) {
                         out.write(buf, 0, r);
                     }

http://dive4elements.wald.intevation.org