# HG changeset patch # User jbe # Date 1434733022 -7200 # Node ID f7ed5b9233310913fcea1194d3f17f16ca88175a # Parent 1019bac12a82f6ca2135af7f22b9946abd2d52b6 Changed scope of local target variable in HTTP module diff -r 1019bac12a82 -r f7ed5b923331 moonbridge_http.lua --- a/moonbridge_http.lua Fri Jun 19 18:54:32 2015 +0200 +++ b/moonbridge_http.lua Fri Jun 19 18:57:02 2015 +0200 @@ -1001,6 +1001,8 @@ return self[key] end end + -- variable to store request target + local target -- coroutine for reading headers: local function read_headers() -- initialize limit: @@ -1014,7 +1016,7 @@ if limit == 0 then return false, request_error(false, "414 Request-URI Too Long") end - local target, proto + local proto request.method, target, proto = line:match("^([^ \t\r]+)[ \t]+([^ \t\r]+)[ \t]*([^ \t\r]*)[ \t]*\r?\n$") if not request.method then