diff --git a/otouto/plugins/gImages.lua b/otouto/plugins/gImages.lua index 661a9ec..1227e89 100644 --- a/otouto/plugins/gImages.lua +++ b/otouto/plugins/gImages.lua @@ -4,6 +4,7 @@ local gImages = {} local HTTPS = require('ssl.https') +HTTPS.timeout = 10 local URL = require('socket.url') local JSON = require('dkjson') local redis = (loadfile "./otouto/redis.lua")() diff --git a/otouto/utilities.lua b/otouto/utilities.lua index 27e7b6b..4d0b743 100644 --- a/otouto/utilities.lua +++ b/otouto/utilities.lua @@ -774,6 +774,7 @@ function get_last_modified_header(url) url = url, redirect = do_redir } + if not header then return end if header["last-modified"] then last_modified = header["last-modified"] elseif header["Last-Modified"] then