From 20027d0efe05a1ab05ab7f4459985b01283968bc Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Tue, 31 Mar 2020 06:04:06 -0400 Subject: [PATCH] domain_export_download.go: do not add gzip encoding header Adding a gzip encoding header would cause the browser to decode the data on the client side. When re-importing the data, a plain JSON is imported instead of a GZIP version. --- api/domain_export_download.go | 1 - 1 file changed, 1 deletion(-) diff --git a/api/domain_export_download.go b/api/domain_export_download.go index f6bebc0..09566c3 100644 --- a/api/domain_export_download.go +++ b/api/domain_export_download.go @@ -28,6 +28,5 @@ func domainExportDownloadHandler(w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Disposition", fmt.Sprintf(`inline; filename="%s-%v.gz"`, domain, creationDate.Unix())) - w.Header().Set("Content-Encoding", "gzip") w.Write(binData) }