aboutsummaryrefslogtreecommitdiff
path: root/test/httptest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/httptest.lua')
-rw-r--r--test/httptest.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index 2335fcb..963b947 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -32,7 +32,7 @@ index_file = "test/index.html"
32index = readfile(index_file) 32index = readfile(index_file)
33 33
34local check_result = function(response, expect, ignore) 34local check_result = function(response, expect, ignore)
35 for i,v in response do 35 for i,v in pairs(response) do
36 if not ignore[i] then 36 if not ignore[i] then
37 if v ~= expect[i] then 37 if v ~= expect[i] then
38 local f = io.open("err", "w") 38 local f = io.open("err", "w")
@@ -42,7 +42,7 @@ local check_result = function(response, expect, ignore)
42 end 42 end
43 end 43 end
44 end 44 end
45 for i,v in expect do 45 for i,v in pairs(expect) do
46 if not ignore[i] then 46 if not ignore[i] then
47 if v ~= response[i] then 47 if v ~= response[i] then
48 local f = io.open("err", "w") 48 local f = io.open("err", "w")