Commit af85976
committed
Set Content-Type on remote notification requests
The webhook POST sends a JSON body built with serde_json, but never declares
it. reqwest's `body()` only sets the payload, so the request goes out without
a Content-Type header and receivers that dispatch on it have to guess.
The wiki documents the payload as JSON, and the recommended receivers
(IFTTT, Svix, SIGNL4) branch on the content type.1 parent 96b0b49 commit af85976
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
0 commit comments