Merge branch 'fix/web_hook_content_type' of https://github.com/kleinmann/gitlabhq into kleinmann-fix/web_hook_content_type

This commit is contained in:
Ariejan de Vroom 2012-03-05 09:56:14 +01:00
commit c5613f666f

View file

@ -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