diff options
author | Uwe Kleinmann <u.kleinmann@googlemail.com> | 2012-03-05 02:38:18 +0100 |
---|---|---|
committer | Uwe Kleinmann <u.kleinmann@googlemail.com> | 2012-03-05 02:38:18 +0100 |
commit | eac366a97bf2da64ccd90ef27c1d2ca974ad8310 (patch) | |
tree | c1005d68822d0dfd2889bde9539fba3206dfad23 /app/models/web_hook.rb | |
parent | bc6915f24a7f17c3cd61b94cc8c6383e1703ae48 (diff) | |
download | gitlab-ce-eac366a97bf2da64ccd90ef27c1d2ca974ad8310.tar.gz |
Sets correct content type on web hook execution.
Diffstat (limited to 'app/models/web_hook.rb')
-rw-r--r-- | app/models/web_hook.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/web_hook.rb b/app/models/web_hook.rb index 40b930c3a98..b0b1e0bd64a 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 |