domain_export_download.go: include json in filename

This commit is contained in:
Adhityaa Chandrasekar 2020-03-31 06:08:23 -04:00
parent 20027d0efe
commit af2626c443

View File

@ -27,6 +27,6 @@ func domainExportDownloadHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Error: that exportHex does not exist\n")
}
w.Header().Set("Content-Disposition", fmt.Sprintf(`inline; filename="%s-%v.gz"`, domain, creationDate.Unix()))
w.Header().Set("Content-Disposition", fmt.Sprintf(`inline; filename="%s-%v.json.gz"`, domain, creationDate.Unix()))
w.Write(binData)
}