comparison mod_pubsub_feeds/mod_pubsub_feeds.lua @ 3280:645c4f14e03d

mod_pubsub_feeds: Fix syntax error
author Kim Alvefur <zash@zash.se>
date Sat, 25 Aug 2018 14:25:30 +0200
parents e6b25054c110
children 27cc66bf918b
comparison
equal deleted inserted replaced
3279:e6b25054c110 3280:645c4f14e03d
160 end 160 end
161 elseif code == 304 then 161 elseif code == 304 then
162 item.last_update = time(); 162 item.last_update = time();
163 elseif code == 301 and resp.headers.location then 163 elseif code == 301 and resp.headers.location then
164 module:log("info", "Feed %q has moved to %q", item.url, resp.headers.location); 164 module:log("info", "Feed %q has moved to %q", item.url, resp.headers.location);
165 elseif code == < 100 then 165 elseif code <= 100 then
166 module:log("error", "Error fetching %q: %q[%d]", item.url, data, code); 166 module:log("error", "Error fetching %q: %q[%d]", item.url, data, code);
167 else 167 else
168 module:log("debug", "Unhandled status code %d when fetching %q", code, item.url); 168 module:log("debug", "Unhandled status code %d when fetching %q", code, item.url);
169 end 169 end
170 end); 170 end);