comparison mod_http_upload/mod_http_upload.lua @ 2957:0f813e22e3fa

Merge commit
author JC Brand <jc@opkode.com>
date Tue, 27 Mar 2018 10:51:25 +0200
parents faec53f4b31e
children 995836ee4f26
comparison
equal deleted inserted replaced
2956:d0ca211e1b0e 2957:0f813e22e3fa
308 return serve_uploaded_files(event, path); 308 return serve_uploaded_files(event, path);
309 end 309 end
310 310
311 local function serve_hello(event) 311 local function serve_hello(event)
312 event.response.headers.content_type = "text/html;charset=utf-8" 312 event.response.headers.content_type = "text/html;charset=utf-8"
313 return "<!DOCTYPE html>\n<h1>Hello from mod_"..module.name.."!</h1>\n"; 313 return "<!DOCTYPE html>\n<h1>Hello from mod_"..module.name.." on "..module.host.."!</h1>\n";
314 end 314 end
315 315
316 module:provides("http", { 316 module:provides("http", {
317 route = { 317 route = {
318 ["GET"] = serve_hello; 318 ["GET"] = serve_hello;