Commit fc65849d authored by Heiko Reese's avatar Heiko Reese
Browse files

This should fix #33

parent ed791622
......@@ -129,7 +129,7 @@ func downloadHandler(w http.ResponseWriter, r *http.Request) {
switch format {
case "der":
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%s.crt", serial))
w.Header().Set("Content-Type", "application/x-x509-user-cert")
w.Header().Set("Content-Type", "application/pkix-cert")
w.Write(cert.GetDER())
case "pem":
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%s.pem", serial))
......@@ -162,7 +162,7 @@ func pubDownloadHandler(w http.ResponseWriter, r *http.Request) {
switch format {
case "der":
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%s.crt", serial))
w.Header().Set("Content-Type", "application/x-x509-user-cert")
w.Header().Set("Content-Type", "application/pkix-cert")
w.Write(cert.GetDER())
case "pem":
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%s.pem", serial))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment