aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java
index 4e613ed4..031eeac2 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java
@@ -145,7 +145,7 @@ public class PDFData extends HttpServlet {
}
// build response
- response.setHeader("Content-Disposition", "inline;filename=multiple_documents.zip");
+ response.setHeader("Content-Disposition", "inline;filename=\"multiple_documents.zip\"");
response.setContentType("application/zip");
final OutputStream os = response.getOutputStream();
@@ -234,8 +234,8 @@ public class PDFData extends HttpServlet {
return;
}
}
- response.setHeader("Content-Disposition", "inline;filename="
- + PdfAsHelper.getPDFFileName(request));
+ response.setHeader("Content-Disposition", "inline;filename=\""
+ + PdfAsHelper.getPDFFileName(request) + "\"");
final String pdfCert = signedFile.getSignerCertificate();
if (pdfCert != null) {
response.setHeader("Signer-Certificate", pdfCert);