Commit 95b7987d6ebb38990bf9a475f702da36898bf554

Authored by Ariejan de Vroom
2 parents bc6915f2 c5613f66

Merge branch 'kleinmann-fix/web_hook_content_type'

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/web_hook.rb
@@ -13,7 +13,7 @@ class WebHook < ActiveRecord::Base @@ -13,7 +13,7 @@ class WebHook < ActiveRecord::Base
13 message: "should be a valid url" } 13 message: "should be a valid url" }
14 14
15 def execute(data) 15 def execute(data)
16 - WebHook.post(url, body: data.to_json) 16 + WebHook.post(url, body: data.to_json, headers: { "Content-Type" => "application/json" })
17 rescue 17 rescue
18 # There was a problem calling this web hook, let's forget about it. 18 # There was a problem calling this web hook, let's forget about it.
19 end 19 end