comparison mod_rest/mod_rest.lua @ 4506:508cb880b163

mod_rest: Fix typos [codespell]
author Kim Alvefur <zash@zash.se>
date Tue, 09 Mar 2021 18:44:35 +0100
parents 80912726405d
children 81d0748bff5b
comparison
equal deleted inserted replaced
4505:e11abf578df5 4506:508cb880b163
215 }); 215 });
216 216
217 -- GET → iq-get 217 -- GET → iq-get
218 local function parse_request(request, path) 218 local function parse_request(request, path)
219 if path and request.method == "GET" then 219 if path and request.method == "GET" then
220 -- e.g. /verison/{to} 220 -- e.g. /version/{to}
221 if request.url.query then 221 if request.url.query then
222 return parse("application/x-www-form-urlencoded", request.url.query, "iq/"..path); 222 return parse("application/x-www-form-urlencoded", request.url.query, "iq/"..path);
223 end 223 end
224 return parse(nil, nil, "iq/"..path); 224 return parse(nil, nil, "iq/"..path);
225 else 225 else