aboutsummaryrefslogtreecommitdiffstats
path: root/generate-json.lua
diff options
context:
space:
mode:
Diffstat (limited to 'generate-json.lua')
-rwxr-xr-xgenerate-json.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/generate-json.lua b/generate-json.lua
index 5b5cd74..e2febf6 100755
--- a/generate-json.lua
+++ b/generate-json.lua
@@ -58,7 +58,7 @@ function get_index_status(uri)
local res = {}
local status, modified
local headers, stream = request.new_from_uri(uri):go(conf.http_timeout)
- if stream then stream:shutdown() end
+ if type(stream) == "table" then stream:shutdown() end
if headers then
status = headers:get(":status")
else