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