]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/api/CreateCertificate.java
upd: more realistic content-type for cert-downloads from API
[gigi.git] / 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) {