diff options
Diffstat (limited to 'test/httptest.lua')
| -rw-r--r-- | test/httptest.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index 1f4158a..31e8212 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
| @@ -3,8 +3,11 @@ | |||
| 3 | -- needs ScriptAlias from /home/c/diego/tec/luasocket/test/cgi | 3 | -- needs ScriptAlias from /home/c/diego/tec/luasocket/test/cgi |
| 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 | |||
| 7 | local socket = require("socket") | 6 | local socket = require("socket") |
| 7 | |||
| 8 | -- override protection to make sure we see all errors | ||
| 9 | -- socket.protect = function(s) return s end | ||
| 10 | |||
| 8 | local http = require("http") | 11 | local http = require("http") |
| 9 | local mime = require("mime") | 12 | local mime = require("mime") |
| 10 | local url = require("url") | 13 | local url = require("url") |
| @@ -19,7 +22,7 @@ http.TIMEOUT = 10 | |||
| 19 | 22 | ||
| 20 | local t = socket.gettime() | 23 | local t = socket.gettime() |
| 21 | 24 | ||
| 22 | host = host or "diego.princeton.edu" | 25 | host = host or "diego.student.princeton.edu" |
| 23 | proxy = proxy or "http://localhost:3128" | 26 | proxy = proxy or "http://localhost:3128" |
| 24 | prefix = prefix or "/luasocket-test" | 27 | prefix = prefix or "/luasocket-test" |
| 25 | cgiprefix = cgiprefix or "/luasocket-test-cgi" | 28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" |
