diff --git a/web/srv/handlers.go b/web/srv/handlers.go index d3aa8bfc7..e2e0d4e97 100644 --- a/web/srv/handlers.go +++ b/web/srv/handlers.go @@ -76,7 +76,7 @@ func (h *handler) handleProfileDownload(w http.ResponseWriter, req *http.Request return } - dispositionHeaderVal := fmt.Sprintf("attachment; filename='%s-profile.yml'", service) + dispositionHeaderVal := fmt.Sprintf("attachment; filename=%s-profile.yml", service) w.Header().Set("Content-Type", "text/yaml") w.Header().Set("Content-Disposition", dispositionHeaderVal) diff --git a/web/srv/handlers_test.go b/web/srv/handlers_test.go index 1f58c6a98..a5a407239 100644 --- a/web/srv/handlers_test.go +++ b/web/srv/handlers_test.go @@ -95,7 +95,7 @@ func TestHandleConfigDownload(t *testing.T) { "text/yaml", }, "Content-Disposition": []string{ - "attachment; filename='authors-profile.yml'", + "attachment; filename=authors-profile.yml", }, } if !reflect.DeepEqual(recorder.Header(), header) {