Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit 8922a75

Browse files
committed
pass content type header to slack
1 parent cf8ef3d commit 8922a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/slack_notification.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class SlackNotification
22
def self.perform(url, payload)
33
json = payload.to_json
4-
request = HTTParty.post(url, body: json)
4+
request = HTTParty.post(url, body: json, headers: {'Content-Type' => 'application/json'})
55
if request.code == 200
66
request.body
77
else

0 commit comments

Comments
 (0)