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.
This commit is contained in:
Adhityaa Chandrasekar 2020-03-31 06:04:06 -04:00
parent 885b4c6689
commit 20027d0efe

View File

@ -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-Disposition", fmt.Sprintf(`inline; filename="%s-%v.gz"`, domain, creationDate.Unix()))
w.Header().Set("Content-Encoding", "gzip")
w.Write(binData) w.Write(binData)
} }