rpc: enforce the 128KB request limits on websockets too

This commit is contained in:
Péter Szilágyi
2018-03-13 13:23:44 +02:00
parent 6a2d2869f6
commit 555f42cfd8
4 changed files with 66 additions and 22 deletions

View File

@ -32,7 +32,7 @@ func TestHTTPErrorResponseWithPut(t *testing.T) {
}
func TestHTTPErrorResponseWithMaxContentLength(t *testing.T) {
body := make([]rune, maxHTTPRequestContentLength+1)
body := make([]rune, maxRequestContentLength+1)
testHTTPErrorResponse(t,
http.MethodPost, contentType, string(body), http.StatusRequestEntityTooLarge)
}