Remove ) from Content-Disposition header in session (#4743)

This commit is contained in:
StefanSchoof 2022-10-06 17:39:09 +02:00 • committed by GitHub
parent d9e8161779
commit 065d0ae07c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ func jsonError(w http.ResponseWriter, status int, err error) {
}
func csvResult(w http.ResponseWriter, res any) {
w.Header()["Content-Disposition"] = []string{`attachment; filename="sessions.csv")`}
w.Header()["Content-Disposition"] = []string{`attachment; filename="sessions.csv"`}
if ww, ok := res.(api.CsvWriter); ok {
ww.WriteCsv(w)