summaryrefslogtreecommitdiffstats
path: root/test/httptest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/httptest.lua')
-rwxr-xr-xtest/httptest.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index bce4cff..311a317 100755
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -44,7 +44,8 @@ local function get(n, close)
printf('%d: %s: %s\n', n, k, v)
end
- printf('\n%d: #body = %d\n', n, #res.body)
+ local body = assert(res:body())
+ printf('\n%d: #body = %d\n', n, #body)
assert(c:close())
running = running - 1