mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
don't write content to no content
This commit is contained in:
parent
6e9efd0e09
commit
41bde6ccba
1 changed files with 1 additions and 3 deletions
|
|
@ -3536,9 +3536,7 @@ func (h *Handler) handleLogin(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
func (h *Handler) handleRedirect(w http.ResponseWriter, r *http.Request) {
|
||||
if h.auth == nil {
|
||||
w.Header().Add("Content-Type", "text/plain")
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
w.Write([]byte("")) //nolint:errcheck
|
||||
http.Error(w, "", http.StatusNoContent)
|
||||
return
|
||||
}
|
||||
h.auth.Redirect(w, r)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue