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:
parent
885b4c6689
commit
20027d0efe
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user