Fix superflous header, other minor bugs

This commit is contained in:
Mukhtar Akere
2025-07-21 20:35:49 +01:00
parent afe577bf2f
commit 3d2fcf5656
6 changed files with 47 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ func (q *QBit) handleLogin(w http.ResponseWriter, r *http.Request) {
if err := _arr.Validate(); err != nil {
q.logger.Error().Err(err).Msgf("Error validating arr")
http.Error(w, "Invalid arr configuration", http.StatusBadRequest)
return
}
_, _ = w.Write([]byte("Ok."))
}