Mercurial Hosting > luan
comparison http/src/luan/modules/http/test.luan @ 508:9218f9cf45d3
various fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 May 2015 20:20:54 -0600 |
parents | 2b9bc97f0439 |
children | ca169567ce07 |
comparison
equal
deleted
inserted
replaced
507:40e18d335da9 | 508:9218f9cf45d3 |
---|---|
1 local Luan = require "luan:Luan" | |
1 local Io = require "luan:Io" | 2 local Io = require "luan:Io" |
2 local Server = require "luan:http/Server" | 3 local Server = require "luan:http/Server" |
3 | 4 |
4 if #{...} ~= 2 then | 5 if #{...} ~= 2 then |
5 Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n" | 6 Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n" |
6 return | 7 return |
7 end | 8 end |
8 | 9 |
9 local dir, test = ... | 10 local dir, test = ... |
10 Server.init(dir) | 11 Server.init(dir) |
11 require(test) | 12 Luan.do_file(test,true) |