Merge "upd: more realistic content-type for cert-downloads from API"
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sun, 16 Oct 2016 16:20:53 +0000 (18:20 +0200)
committerGerrit Code Review <gigi-system@dogcraft.de>
Sun, 16 Oct 2016 16:20:53 +0000 (18:20 +0200)
src/org/cacert/gigi/api/CreateCertificate.java

index d548ad3a9b9cca52dde9171c839f5b65c51af330..a939b9e6c7844e4fd9c9b30f06886a43286fba83 100644 (file)
@@ -70,7 +70,7 @@ public class CreateCertificate extends APIPoint {
                 resp.sendError(510, "Error, issuing timed out");
                 return;
             }
-
+            resp.addHeader("Content-Type", "text/plain");
             CertExporter.writeCertCrt(result, resp.getOutputStream(), req.getParameter("chain") != null, req.getParameter("noAnchor") == null, true);
             return;
         } catch (GeneralSecurityException e) {