aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/server.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 14:27:48 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 14:27:48 +0100
commit622996868508974eef027f5ea0540e32b2f883e6 (patch)
tree6775cfc9b72419d2148c6cbcfee698ce2f0be70e /net/http/server.lua
parent2d24f6f5cb71423832226b47d64fafb4af40d2d5 (diff)
downloadprosody-622996868508974eef027f5ea0540e32b2f883e6.tar.gz
prosody-622996868508974eef027f5ea0540e32b2f883e6.zip
net.http.server: Remove unused imports and variables (fixes traceback due to removed net.httpserver)
Diffstat (limited to 'net/http/server.lua')
-rw-r--r--net/http/server.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 8b91b4d3..295592d3 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -12,8 +12,6 @@ local xpcall = xpcall;
local debug = debug;
local tostring = tostring;
local codes = require "net.http.codes";
-local _G = _G;
-local legacy_httpserver = require "net.httpserver";
local _M = {};
@@ -90,7 +88,7 @@ function listener.onconnect(conn)
local secure = conn:ssl() and true or nil;
local pending = {};
local waiting = false;
- local function process_next(last_response)
+ local function process_next()
--if waiting then log("debug", "can't process_next, waiting"); return; end
if sessions[conn] and #pending > 0 then
local request = t_remove(pending);
@@ -198,7 +196,7 @@ function handle_request(conn, request, finish_cb)
local result = events.fire_event(event, payload);
if result ~= nil then
if result ~= true then
- local code, body = 200, "";
+ local body = "";
local result_type = type(result);
if result_type == "number" then
response.status_code = result;