Diff

plugins/mod_http.lua @ 7581:01d0d466d7be

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 15:16:02 +0200
parent 6602:61b6a4fc65f1
parent 7580:588ed6451984
child 7605:2481ebc7f715
child 7867:194f540e13e2
line wrap: on
line diff
--- a/plugins/mod_http.lua	Sat Aug 13 16:11:30 2016 +0200
+++ b/plugins/mod_http.lua	Thu Aug 18 15:16:02 2016 +0200
@@ -18,6 +18,9 @@
 
 server.set_default_host(module:get_option_string("http_default_host"));
 
+server.set_option("body_size_limit", module:get_option_number("http_max_content_size"));
+server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size"));
+
 local function normalize_path(path)
 	if path:sub(-1,-1) == "/" then path = path:sub(1, -2); end
 	if path:sub(1,1) ~= "/" then path = "/"..path; end