aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 17:36:46 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 17:36:46 +0200
commit5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e (patch)
treea89e877c6e83d9aa3b79825812361591bf12bf2e /plugins/mod_http.lua
parent2d2c10e83b62fbe72ac90043eca1c90d60a8cee5 (diff)
parent33a8994b3cf6aabe428b7cdf6bba7bdf68d9c366 (diff)
downloadprosody-5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e.tar.gz
prosody-5ce8cd7c944d2e59621a79fb0fdc51a49f42af5e.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_http.lua')
-rw-r--r--plugins/mod_http.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 81417cad..975663a5 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -18,6 +18,9 @@ local server = require "net.http.server";
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