Merge branch 'master' of github.com:gitlabhq/gitlabhq

This commit is contained in:
Dmitriy Zaporozhets 2012-03-06 00:16:40 +02:00
commit 74f8bc7298

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