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

Commit

Permalink
pass content type header to slack
Browse files Browse the repository at this point in the history
  • Loading branch information
rshorey committed Apr 10, 2023
1 parent cf8ef3d commit 8922a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/slack_notification.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class SlackNotification
def self.perform(url, payload)
json = payload.to_json
request = HTTParty.post(url, body: json)
request = HTTParty.post(url, body: json, headers: {'Content-Type' => 'application/json'})
if request.code == 200
request.body
else
Expand Down

0 comments on commit 8922a75

Please sign in to comment.