From 16b69f483f516c79624cbadcdf348241d110f127 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Thu, 22 Feb 2024 22:19:04 +0100 Subject: [PATCH] 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. --- docs/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.md b/docs/index.md index 462a0fee..22ea107c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -40,6 +40,7 @@ simple message using a POST request: ``` http POST /mytopic HTTP/1.1 Host: ntfy.sh + Content-Length: 22 Backup successful 😀 ```