limit HTTP request body and WS read msg size to 1MB

This commit is contained in:
Anton Kaliaev
2018-06-29 12:40:32 +04:00
parent f760c24ff0
commit 297cd4cfe8
3 changed files with 26 additions and 3 deletions
+1
View File
@@ -7,6 +7,7 @@ import (
)
const (
// MaxBlockSizeBytes is the maximum permitted size of the blocks.
MaxBlockSizeBytes = 104857600 // 100MB
)