From af2626c443d694386beceedc49d47b58066bea08 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Tue, 31 Mar 2020 06:08:23 -0400 Subject: [PATCH] domain_export_download.go: include json in filename --- api/domain_export_download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/domain_export_download.go b/api/domain_export_download.go index 09566c3..daacc39 100644 --- a/api/domain_export_download.go +++ b/api/domain_export_download.go @@ -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) }