From 80070516fd73771fe7c7ed1a473d29def58ab55c Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 20 May 2020 19:23:51 +0200 Subject: [PATCH] http: set buffer size to 1536 --- vlib/net/http/http.v | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vlib/net/http/http.v b/vlib/net/http/http.v index d21407a6a5..ba5b66b74d 100644 --- a/vlib/net/http/http.v +++ b/vlib/net/http/http.v @@ -11,6 +11,7 @@ import net const ( max_redirects = 4 content_type_default = 'text/plain' + bufsize = 1536 ) pub struct Request { @@ -380,10 +381,6 @@ pub fn escape(s string) string { panic('http.escape() was replaced with http.escape_url()') } -const ( - bufsize = 512 -) - fn (req &Request) http_do(port int, method, host_name, path string) ?Response { rbuffer := [bufsize]byte mut sb := strings.new_builder(100)