Commit eac366a97bf2da64ccd90ef27c1d2ca974ad8310
1 parent
bc6915f2
Exists in
master
and in
4 other branches
Sets correct content type on web hook execution.
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 | 13 | message: "should be a valid url" } |
14 | 14 | |
15 | 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 | 17 | rescue |
18 | 18 | # There was a problem calling this web hook, let's forget about it. |
19 | 19 | end | ... | ... |