Skip to content

Commit d450f39

Browse files
authored
Merge pull request #1266 from karpovantonme/fix/webhook-content-type
Set Content-Type on remote notification requests
2 parents 96b0b49 + af85976 commit d450f39

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/notifications/notify_and_log.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ fn send_remote_notification(
234234
let Ok(response) = client
235235
.post(remote_notifications.url())
236236
.header("User-agent", format!("{SNIFFNET_LOWERCASE}-{APP_VERSION}"))
237+
.header("Content-Type", "application/json")
237238
.body(notification.to_json())
238239
.send()
239240
.await

0 commit comments

Comments
 (0)