aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/http_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-03-13 19:23:44 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-03-13 19:55:26 +0800
commit555f42cfd836dabe3151becffa63976c91e5344b (patch)
tree92fefaf4d47056a25dc06893fe2257df92f029ab /rpc/http_test.go
parent6a2d2869f6cb369379eb1c03ed7e55c089e83dd6 (diff)
downloadgo-tangerine-555f42cfd836dabe3151becffa63976c91e5344b.tar
go-tangerine-555f42cfd836dabe3151becffa63976c91e5344b.tar.gz
go-tangerine-555f42cfd836dabe3151becffa63976c91e5344b.tar.bz2
go-tangerine-555f42cfd836dabe3151becffa63976c91e5344b.tar.lz
go-tangerine-555f42cfd836dabe3151becffa63976c91e5344b.tar.xz
go-tangerine-555f42cfd836dabe3151becffa63976c91e5344b.tar.zst
go-tangerine-555f42cfd836dabe3151becffa63976c91e5344b.zip
rpc: enforce the 128KB request limits on websockets too
Diffstat (limited to 'rpc/http_test.go')
-rw-r--r--rpc/http_test.go2
1 files changed, 1 insertions, 1 deletions
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)
}