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:
Jules Blok 2024-02-22 22:19:04 +01:00 committed by GitHub
parent 1d2b759dc0
commit 16b69f483f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,7 @@ simple message using a POST request:
``` http
POST /mytopic HTTP/1.1
Host: ntfy.sh
Content-Length: 22
Backup successful 😀
```