Skip to content

Commit

Permalink
Update lib/msteams_hermes/message.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Nej <[email protected]>
  • Loading branch information
mooikos and huNt-FMJ authored May 28, 2024
1 parent 19a1c87 commit c08fe1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/msteams_hermes/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def deliver

response = http.request(req)

# For details see:
# https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL%2Ctext1#send-messages-using-curl-and-powershell
if response.body != "1"
raise MessageBodyTooLargeError, body_json.bytesize if response.body.include? MSTEAMS_MESSAGE_413_ERROR_TOKEN

Expand Down

0 comments on commit c08fe1b

Please sign in to comment.