# HG changeset patch # User Kim Alvefur # Date 1577132974 -3600 # Node ID 375d31225d532a671ec8a3a3a73b7803afe2c4c4 # Parent 25f80afb1631a7109f8d23b611ba2c2b071248b5 net.http.parser: Silence warning about unused variable [luacheck] diff -r 25f80afb1631 -r 375d31225d53 net/http/parser.lua --- 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