Changeset

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
parents 10539:25f80afb1631
children 10541:6c6ff4509082
files net/http/parser.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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