Comparison

net/http/codes.lua @ 7571:e8efb5cf0877

net.http.codes: Remove used argument
author Kim Alvefur <zash@zash.se>
date Sat, 13 Aug 2016 16:10:17 +0200
parent 6694:fc45dc6d604c
child 7572:f549587b8c06
comparison
equal deleted inserted replaced
7570:c61ea328fac2 7571:e8efb5cf0877
68 [510] = "Not Extended"; 68 [510] = "Not Extended";
69 [511] = "Network Authentication Required"; 69 [511] = "Network Authentication Required";
70 }; 70 };
71 71
72 for k,v in pairs(response_codes) do response_codes[k] = k.." "..v; end 72 for k,v in pairs(response_codes) do response_codes[k] = k.." "..v; end
73 return setmetatable(response_codes, { __index = function(t, k) return k.." Unassigned"; end }) 73 return setmetatable(response_codes, { __index = function(_, k) return k.." Unassigned"; end })