mirror of
https://github.com/minio/minio.git
synced 2025-11-23 19:17:43 -05:00
Some more improvements to connection limit
This commit is contained in:
@@ -58,11 +58,11 @@ const (
|
||||
func writeErrorResponse(w http.ResponseWriter, req *http.Request, errorType int, resource string) {
|
||||
error := getErrorCode(errorType)
|
||||
errorResponse := getErrorResponse(error, resource)
|
||||
encodedErrorResponse := encodeErrorResponse(errorResponse)
|
||||
// set headers
|
||||
writeErrorHeaders(w)
|
||||
w.WriteHeader(error.HTTPStatusCode)
|
||||
// write body
|
||||
encodedErrorResponse := encodeErrorResponse(errorResponse)
|
||||
w.Write(encodedErrorResponse)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user