diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-09-27 04:01:18 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-09-27 04:01:18 +0000 |
commit | a04f15d1ca440006a53bd0d9f98c12e5abebd969 (patch) | |
tree | 30d37d74b5c99d5d0e7489a421ec44ad0150113f /test/httptest.lua | |
parent | e1d318f26cf53ce9b2c3044d8d138956150488c7 (diff) | |
download | luasocket-a04f15d1ca440006a53bd0d9f98c12e5abebd969.tar.gz luasocket-a04f15d1ca440006a53bd0d9f98c12e5abebd969.tar.bz2 luasocket-a04f15d1ca440006a53bd0d9f98c12e5abebd969.zip |
Using new module scheme. Still needs fine tuning.
Diffstat (limited to 'test/httptest.lua')
-rw-r--r-- | test/httptest.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index ce7a93b..71021a4 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
@@ -4,15 +4,15 @@ | |||
4 | -- to "/luasocket-test-cgi" and "/luasocket-test-cgi/" | 4 | -- to "/luasocket-test-cgi" and "/luasocket-test-cgi/" |
5 | -- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth | 5 | -- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth |
6 | local socket = require("socket") | 6 | local socket = require("socket") |
7 | local http = require("socket.http") | ||
8 | local url = require("socket.url") | ||
7 | 9 | ||
8 | -- override protection to make sure we see all errors | ||
9 | -- socket.protect = function(s) return s end | ||
10 | |||
11 | local http = require("http") | ||
12 | local mime = require("mime") | 10 | local mime = require("mime") |
13 | local url = require("url") | ||
14 | local ltn12 = require("ltn12") | 11 | local ltn12 = require("ltn12") |
15 | 12 | ||
13 | -- override protection to make sure we see all errors | ||
14 | -- socket.protect = function(s) return s end | ||
15 | |||
16 | dofile("testsupport.lua") | 16 | dofile("testsupport.lua") |
17 | 17 | ||
18 | local host, proxy, request, response, index_file | 18 | local host, proxy, request, response, index_file |