feat : option to disable validation for load testing purpose

This commit is contained in:
2024-10-29 12:05:03 +01:00
parent f4c0eec360
commit bc3a0886b0
2 changed files with 11 additions and 10 deletions

View File

@ -83,7 +83,7 @@ func (s *Server) submitHandler(w http.ResponseWriter, r *http.Request) {
return
}
if !verified {
if !verified && !s.config.DisableValidation {
slog.Debug("Invalid solution")
http.Error(w, "Invalid solution", http.StatusBadRequest)
return