-
-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF-8 Actions Header #737
Comments
UTF-8 headers are supported by the ntfy server, but many clients have trouble with it. So it is likely that your IDE and/or programming language is incorrectly encoding the header. This is because the HTTP spec doesn't officially support UTF-8 header. It works on Linux with curl:
That said, a few of the other headers can already be encoded with RFC 2047 type strings, but the action description cannot. Maybe we should add that support too. Then you could do:
I think that's reasonable.
The icon param should be supported. Here's and example with curl:
|
Yes, It would be very nice.
It was not inside the overview of the supported field of the documentation so I thought it was not supported |
Done in 168ad8b -- Will be in the next release |
🐞 Describe the bug
Ntfy server seem to block every POST request with an UTF-8 character ( à ) inside the Actions Header (for the label) but when I had an an UTF-8 character inside the Title Header or the body, it is processed normally and give the correct output or an unknow character due to bad UTF-8 processing (not a bug, I think)
💻 Components impacted
Ntfy Server
💡 Screenshots and/or logs
ntfy server log:
Actions Header :
http, "Mettre à jour", "https://REDACTED/webhook/netbird-update", method=GET, headers.AUTH=REDACTED
🔮 Additional context
I can't use the JSON method because I need the Icon parameter and it isn't supported
The text was updated successfully, but these errors were encountered: