# HG changeset patch # User Andre Heinecke # Date 1365433094 -7200 # Node ID 8128622e4b2893d91a30bdd52f7e426f6098ba0c # Parent ba28e9ba981fa61079c2493c07942b80a397fbb2 Set filename for the response diff -r ba28e9ba981f -r 8128622e4b28 flys-client/src/main/java/de/intevation/flys/client/server/MapPrintServiceImpl.java --- 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); }