mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-01-05 16:49:03 +03:00
Clarify that Content-Length is required in the HTTP header
Without it your message will be empty and the message will be replaced by "triggered". I initially missed this because normally this happens when using a GET request instead of POST, so it took a bit of time to figure out I had forgotten the Content-Length header.
This commit is contained in:
parent
1d2b759dc0
commit
16b69f483f
@ -40,6 +40,7 @@ simple message using a POST request:
|
|||||||
``` http
|
``` http
|
||||||
POST /mytopic HTTP/1.1
|
POST /mytopic HTTP/1.1
|
||||||
Host: ntfy.sh
|
Host: ntfy.sh
|
||||||
|
Content-Length: 22
|
||||||
|
|
||||||
Backup successful 😀
|
Backup successful 😀
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user