From 555f42cfd836dabe3151becffa63976c91e5344b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 13 Mar 2018 13:23:44 +0200 Subject: rpc: enforce the 128KB request limits on websockets too --- rpc/http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc/http_test.go') diff --git a/rpc/http_test.go b/rpc/http_test.go index aed84f683..b3f694d8a 100644 --- a/rpc/http_test.go +++ b/rpc/http_test.go @@ -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) } -- cgit v1.2.3