diff --git a/internal/api/saml.go b/internal/api/saml.go index 41ee9e4f9..d936ff2fa 100644 --- a/internal/api/saml.go +++ b/internal/api/saml.go @@ -95,8 +95,6 @@ func (a *API) SAMLMetadata(w http.ResponseWriter, r *http.Request) error { w.Header().Set("Content-Disposition", "attachment; filename=\"metadata.xml\"") } - w.WriteHeader(http.StatusOK) - _, err = w.Write(metadataXML) return err