Diff

net/http/parser.lua @ 10540:375d31225d53

net.http.parser: Silence warning about unused variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 23 Dec 2019 21:29:34 +0100
parent 8045:55a56dc935f2
child 10580:b7c5d7bae4ef
line wrap: on
line diff
--- a/net/http/parser.lua	Mon Dec 23 21:27:34 2019 +0100
+++ b/net/http/parser.lua	Mon Dec 23 21:29:34 2019 +0100
@@ -63,7 +63,8 @@
 					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