mod_http: Allow configuring http parser size limits

remotes/origin/0.11
Kim Alvefur 10 years ago
parent 47fe58f5ca
commit 1686ef5d53
  1. 3
      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

Loading…
Cancel
Save