Diff

mod_twitter/mod_twitter.lua @ 983:ac9bf3fcbcfe

mod_pubsub_feeds, mod_sms_clickatell, mod_twitter: Update for net.http API change in prosody:e3b9dc9dd940
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Apr 2013 00:33:41 +0100
parent 803:be509416d64c
child 2887:65082d91950e
line wrap: on
line diff
--- a/mod_twitter/mod_twitter.lua	Thu Apr 11 21:39:03 2013 +0200
+++ b/mod_twitter/mod_twitter.lua	Fri Apr 12 00:33:41 2013 +0100
@@ -73,7 +73,7 @@
 end
 
 function http_add_action(tid, url, method, post, fcallback)
-	local request = http.request(url, { headers = http_headers or {}, body = http.formencode(post or {}), method = method or "GET" }, function(response, code, request) http_action_callback(response, code, request, fcallback) end);
+	local request = http.request(url, { headers = http_headers or {}, body = http.formencode(post or {}), method = method or "GET" }, function(response_body, code, response, request) http_action_callback(response_body, code, request, fcallback) end);
 	http_queue[request] = tid;
 	timer.add_task(http_timeout, function() http.destroy_request(request); end);
 	return true;