Mercurial Hosting > luan
comparison http/src/luan/modules/http/Http.luan @ 495:598123096772
rename service() to respond()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 15 May 2015 18:10:14 -0600 |
parents | 2b9bc97f0439 |
children | 55f9f74f1e55 |
comparison
equal
deleted
inserted
replaced
494:2b9bc97f0439 | 495:598123096772 |
---|---|
11 if welcome_file ~= nil and path.matches ".*/" then | 11 if welcome_file ~= nil and path.matches ".*/" then |
12 path = path .. welcome_file | 12 path = path .. welcome_file |
13 end | 13 end |
14 local old_out = Io.stdout | 14 local old_out = Io.stdout |
15 local mod = require("site:"..path) | 15 local mod = require("site:"..path) |
16 mod.service() | 16 mod.respond() |
17 text_writer.close() | 17 text_writer.close() |
18 Io.stdout = old_out | 18 Io.stdout = old_out |
19 return result.read_text() | 19 return result.read_text() |
20 end | 20 end |
21 | 21 |