- Error-Handler für nicht-ladbare Dateien
- gImages mit Timeout (funktioniert das so?)
This commit is contained in:
parent
619371b1e4
commit
f5b310d044
@ -4,6 +4,7 @@
|
|||||||
local gImages = {}
|
local gImages = {}
|
||||||
|
|
||||||
local HTTPS = require('ssl.https')
|
local HTTPS = require('ssl.https')
|
||||||
|
HTTPS.timeout = 10
|
||||||
local URL = require('socket.url')
|
local URL = require('socket.url')
|
||||||
local JSON = require('dkjson')
|
local JSON = require('dkjson')
|
||||||
local redis = (loadfile "./otouto/redis.lua")()
|
local redis = (loadfile "./otouto/redis.lua")()
|
||||||
|
@ -774,6 +774,7 @@ function get_last_modified_header(url)
|
|||||||
url = url,
|
url = url,
|
||||||
redirect = do_redir
|
redirect = do_redir
|
||||||
}
|
}
|
||||||
|
if not header then return end
|
||||||
if header["last-modified"] then
|
if header["last-modified"] then
|
||||||
last_modified = header["last-modified"]
|
last_modified = header["last-modified"]
|
||||||
elseif header["Last-Modified"] then
|
elseif header["Last-Modified"] then
|
||||||
|
Reference in New Issue
Block a user