- Error-Handler für nicht-ladbare Dateien

- gImages mit Timeout (funktioniert das so?)
This commit is contained in:
Andreas Bielawski 2016-07-07 00:31:19 +02:00
parent 619371b1e4
commit f5b310d044
2 changed files with 2 additions and 0 deletions

View File

@ -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")()

View File

@ -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