From eac366a97bf2da64ccd90ef27c1d2ca974ad8310 Mon Sep 17 00:00:00 2001 From: Uwe Kleinmann Date: Mon, 5 Mar 2012 02:38:18 +0100 Subject: [PATCH] Sets correct content type on web hook execution. --- app/models/web_hook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index 40b930c3..b0b1e0bd 100644 --- a/app/models/web_hook.rb +++ b/app/models/web_hook.rb @@ -13,7 +13,7 @@ class WebHook < ActiveRecord::Base message: "should be a valid url" } def execute(data) - WebHook.post(url, body: data.to_json) + WebHook.post(url, body: data.to_json, headers: { "Content-Type" => "application/json" }) rescue # There was a problem calling this web hook, let's forget about it. end