aboutsummaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 21:29:34 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 21:29:34 +0100
commitbc442f7e678140010d2bb872367e1103fe6e3ffe (patch)
tree1bc2b8cadccf763866a2450e2637bff0c8e38eff /net/http
parentc29efd2a381697c1e2deb51087cee2c9b3dd18fd (diff)
downloadprosody-bc442f7e678140010d2bb872367e1103fe6e3ffe.tar.gz
prosody-bc442f7e678140010d2bb872367e1103fe6e3ffe.zip
net.http.parser: Silence warning about unused variable [luacheck]
Diffstat (limited to 'net/http')
-rw-r--r--net/http/parser.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/parser.lua b/net/http/parser.lua
index 4e4ae9fb..62c09aef 100644
--- a/net/http/parser.lua
+++ b/net/http/parser.lua
@@ -63,7 +63,8 @@ function httpstream.new(success_cb, error_cb, parser_type, options_cb)
if buftable then buf, buftable = t_concat(buf), false; end
local index = buf:find("\r\n\r\n", nil, true);
if not index then return; end -- not enough data
- local method, path, httpversion, status_code, reason_phrase;
+ -- FIXME was reason_phrase meant to be passed on somewhere?
+ local method, path, httpversion, status_code, reason_phrase; -- luacheck: ignore reason_phrase
local first_line;
local headers = {};
for line in buf:sub(1,index+1):gmatch("([^\r\n]+)\r\n") do -- parse request