changeset 5600:8128622e4b28 2.9.18

Set filename for the response
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 08 Apr 2013 16:58:14 +0200 (2013-04-08)
parents ba28e9ba981f
children 8f28535455eb
files flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java	Mon Apr 08 16:55:15 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java	Mon Apr 08 16:58:14 2013 +0200
@@ -393,6 +393,8 @@
                 try {
                     byte [] buf = new byte[4096];
                     int r;
+                    resp.setHeader("Content-Disposition",
+                            "attachment;filename=flys-karte.pdf");
                     while ((r = in.read(buf)) >= 0) {
                         out.write(buf, 0, r);
                     }

http://dive4elements.wald.intevation.org