add more tests

This commit is contained in:
kevin
2020-10-10 11:53:49 +08:00
parent be39133dba
commit adc275872d
6 changed files with 51 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ func MaxConns(n int) func(http.Handler) http.Handler {
next.ServeHTTP(w, r)
} else {
internal.Errorf(r, "Concurrent connections over %d, rejected with code %d",
internal.Errorf(r, "concurrent connections over %d, rejected with code %d",
n, http.StatusServiceUnavailable)
w.WriteHeader(http.StatusServiceUnavailable)
}