Commit c5613f66 authored by Ariejan de Vroom's avatar Ariejan de Vroom

Merge branch 'fix/web_hook_content_type' of...

Merge branch 'fix/web_hook_content_type' of https://github.com/kleinmann/gitlabhq into kleinmann-fix/web_hook_content_type
parents bc6915f2 eac366a9
...@@ -13,7 +13,7 @@ class WebHook < ActiveRecord::Base ...@@ -13,7 +13,7 @@ class WebHook < ActiveRecord::Base
message: "should be a valid url" } message: "should be a valid url" }
def execute(data) def execute(data)
WebHook.post(url, body: data.to_json) WebHook.post(url, body: data.to_json, headers: { "Content-Type" => "application/json" })
rescue rescue
# There was a problem calling this web hook, let's forget about it. # There was a problem calling this web hook, let's forget about it.
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment