Comparison

plugins/mod_http_files.lua @ 12387:05c250fa335a

Spelling: Fix various spelling mistakes (thanks timeless) Words, sometimes I wonder how they even work Maybe I missed something.
author Kim Alvefur <zash@zash.se>
date Mon, 07 Mar 2022 00:13:56 +0100
parent 10778:a62b981db0e2
child 12597:ba05f7e5f2a2
comparison
equal deleted inserted replaced
12386:2d3080d02960 12387:05c250fa335a
73 end 73 end
74 if opts.index_files == nil then 74 if opts.index_files == nil then
75 opts.index_files = dir_indices; 75 opts.index_files = dir_indices;
76 end 76 end
77 -- TODO Crank up to warning 77 -- TODO Crank up to warning
78 module:log("debug", "%s should be updated to use 'net.http.files' insead of mod_http_files", get_calling_module()); 78 module:log("debug", "%s should be updated to use 'net.http.files' instead of mod_http_files", get_calling_module());
79 return fileserver.serve(opts); 79 return fileserver.serve(opts);
80 end 80 end
81 81
82 function wrap_route(routes) 82 function wrap_route(routes)
83 module:log("debug", "%s should be updated to use 'net.http.files' insead of mod_http_files", get_calling_module()); 83 module:log("debug", "%s should be updated to use 'net.http.files' instead of mod_http_files", get_calling_module());
84 for route,handler in pairs(routes) do 84 for route,handler in pairs(routes) do
85 if type(handler) ~= "function" then 85 if type(handler) ~= "function" then
86 routes[route] = fileserver.serve(handler); 86 routes[route] = fileserver.serve(handler);
87 end 87 end
88 end 88 end