From 88aa67dba7986fc7318ba17cd766bbed9f5a5544 Mon Sep 17 00:00:00 2001 From: maxwell Date: Sat, 4 Dec 2010 13:54:39 -0800 Subject: [PATCH] actually put the post in the xml param where we expecting it. also, throw the errors so we know in whats going on in resque --- app/models/jobs/http_post.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/jobs/http_post.rb b/app/models/jobs/http_post.rb index 6feb8c140..7aa48c894 100644 --- a/app/models/jobs/http_post.rb +++ b/app/models/jobs/http_post.rb @@ -3,9 +3,10 @@ module Jobs @queue = :http def self.perform(url, body, tries_remaining) begin - RestClient.post(url, body) - rescue + RestClient.post(url, :xml => body) + rescue Exception => e Resque.enqueue(self, url, body, tries_remaining -1) unless tries_remaining <= 1 + raise e end end end