Add text/plain content-type option for POST /message
endpoint
#547
Labels
a:feature
New feature or request
/message
endpoint
#547
Is your feature request related to a problem? Please describe.
I'm attempting to log content that I cannot sanitize into Gotify. My options are to call the
/message
endpoint with one ofapplication/json
,application/x-www-form-urlencoded
, ormultipart/form-data
content-types. As the unsanitized input could contain control characters for any of those methods, logging the message to gotify will not be reliable.Describe the solution you'd like
I'd like to be able to specify
text/plain
as the content-type, and treat the entire HTTP body as the value ofmessage
. This would limit the declaration of other values (title, priority, etc) unless they could be read from GET parameters. Nonetheless, it would allow for the logging of unsanitized messages.Describe alternatives you've considered
Proper sanitization sadly isn't an option here... But ntfy.sh does support plain-text messaging.
The text was updated successfully, but these errors were encountered: