Commit 74f8bc7298f112c2d414c6f71be054adce01012a

Authored by Dmitriy Zaporozhets
2 parents 0727edd8 95b7987d

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

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