From 9622991f2c8aa3007781aac01dec77e9500050be Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Thu, 25 Apr 2024 16:19:28 +0800 Subject: [PATCH] chore: remove unnecessary change --- internal/api/saml.go | 2 -- 1 file changed, 2 deletions(-) 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