Commit c5613f666f8b4560e84996c68d9fdcb41cf60d86

Authored by Ariejan de Vroom
2 parents bc6915f2 eac366a9

Merge branch 'fix/web_hook_content_type' of https://github.com/kleinmann/gitlabh…

…q into kleinmann-fix/web_hook_content_type
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
... ...