aboutsummaryrefslogtreecommitdiff
path: root/test/httptest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/httptest.lua')
-rw-r--r--test/httptest.lua7
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
7local socket = require("socket") 6local socket = require("socket")
7
8-- override protection to make sure we see all errors
9-- socket.protect = function(s) return s end
10
8local http = require("http") 11local http = require("http")
9local mime = require("mime") 12local mime = require("mime")
10local url = require("url") 13local url = require("url")
@@ -19,7 +22,7 @@ http.TIMEOUT = 10
19 22
20local t = socket.gettime() 23local t = socket.gettime()
21 24
22host = host or "diego.princeton.edu" 25host = host or "diego.student.princeton.edu"
23proxy = proxy or "http://localhost:3128" 26proxy = proxy or "http://localhost:3128"
24prefix = prefix or "/luasocket-test" 27prefix = prefix or "/luasocket-test"
25cgiprefix = cgiprefix or "/luasocket-test-cgi" 28cgiprefix = cgiprefix or "/luasocket-test-cgi"