Diff

mod_pubsub_feeds/mod_pubsub_feeds.lua @ 1343:7dbde05b48a9

all the things: Remove trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 11 Mar 2014 18:44:01 +0100
parent 1325:b21236b6b8d8
child 1453:7b53cfc6ba8d
line wrap: on
line diff
--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua	Mon Mar 10 08:22:58 2014 +0000
+++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua	Tue Mar 11 18:44:01 2014 +0100
@@ -112,7 +112,7 @@
 			end
 		end
 	end
-	
+
 	if use_pubsubhubub and not item.subscription then
 		--module:log("debug", "check if %s has a hub", item.node);
 		local hub = feed.links and feed.links.hub;
@@ -129,7 +129,7 @@
 	if item.data and item.last_update then
 		headers["If-Modified-Since"] = date("!%a, %d %b %Y %H:%M:%S %Z", item.last_update);
 	end
-	http.request(item.url, { headers = headers }, function(data, code) 
+	http.request(item.url, { headers = headers }, function(data, code)
 		if code == 200 then
 			item.data = data;
 			if callback then callback(item) end
@@ -146,7 +146,7 @@
 	for node, item in pairs(feed_list) do
 		--FIXME Don't fetch feeds which have a subscription
 		-- Otoho, what if the subscription expires or breaks?
-		if force or item.last_update + refresh_interval < now then 
+		if force or item.last_update + refresh_interval < now then
 			--module:log("debug", "checking %s", item.node);
 			fetch(item, update_entry);
 		end
@@ -156,7 +156,7 @@
 
 local function format_url(node)
 	return module:http_url(nil, "/callback") .. "?node=" .. urlencode(node);
-end	
+end
 
 function subscribe(feed, want)
 	want = want or "subscribe";