Increase ReadBufferSize (#74)

fix #61

git-svn-id: file:///srv/svn/repo/yukari/trunk@113 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
alex 2020-07-14 05:59:36 +00:00
parent e4caa48a8f
commit 6135642d68

View File

@ -41,6 +41,7 @@ var DEBUG = os.Getenv("DEBUG") != "false"
var CLIENT *fasthttp.Client = &fasthttp.Client{
MaxResponseBodySize: 10 * 1024 * 1024, // 10M
ReadBufferSize: 16 * 1024, // 16K
}
var CSS_URL_REGEXP *regexp.Regexp = regexp.MustCompile("url\\((['\"]?)[ \\t\\f]*([\u0009\u0021\u0023-\u0026\u0028\u002a-\u007E]+)(['\"]?)\\)?")