[GH-ISSUE #630] Query parameters accept only lowercase parameter names #471

Closed
opened 2026-05-07 00:24:31 +02:00 by BreizhHardware · 4 comments

Originally created by @bbaa-bbaa on GitHub (Feb 22, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/630

The parameter names are described as case-insensitive in the documentation, but only lowercase is accepted when passed by the query parameters

Originally created by @bbaa-bbaa on GitHub (Feb 22, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/630 The parameter names are described as case-insensitive in the documentation, but only lowercase is accepted when passed by the query parameters
BreizhHardware 2026-05-07 00:24:31 +02:00
Author
Owner

@wunter8 commented on GitHub (Mar 7, 2023):

Is there a specific query parameter you're having problems with? All of the following work fine for me.

curl "https://ntfy.sh/mytopic/publish?message=testing"
curl "https://ntfy.sh/mytopic/publish?Message=testing"
curl "https://ntfy.sh/mytopic/publish?mEsSAgE=testing"

Never mind. I didn't notice that the message was triggered instead of testing when using the capital query parameters.

<!-- gh-comment-id:1457347108 --> @wunter8 commented on GitHub (Mar 7, 2023): ~~Is there a specific query parameter you're having problems with? All of the following work fine for me.~~ ~~`curl "https://ntfy.sh/mytopic/publish?message=testing"`~~ ~~`curl "https://ntfy.sh/mytopic/publish?Message=testing"`~~ ~~`curl "https://ntfy.sh/mytopic/publish?mEsSAgE=testing"`~~ Never mind. I didn't notice that the message was `triggered` instead of `testing` when using the capital query parameters.
Author
Owner

@binwiederhier commented on GitHub (Mar 7, 2023):

As per https://github.com/binwiederhier/ntfy/pull/661#issuecomment-1458700198, I think we're not going to do this. Instead, we'll just update the docs to reflect that query params are lower-case only.

<!-- gh-comment-id:1458714644 --> @binwiederhier commented on GitHub (Mar 7, 2023): As per https://github.com/binwiederhier/ntfy/pull/661#issuecomment-1458700198, I think we're not going to do this. Instead, we'll just update the docs to reflect that query params are lower-case only.
Author
Owner

@binwiederhier commented on GitHub (Mar 12, 2023):

Changed in the docs:

The following is a list of all parameters that can be passed when publishing a message. Parameter names are case-insensitive when used in HTTP headers, and must be lowercase when used as query parameters in the URL. They are listed in the table in their canonical form.

<!-- gh-comment-id:1465075576 --> @binwiederhier commented on GitHub (Mar 12, 2023): Changed in the docs: > The following is a list of all parameters that can be passed when publishing a message. Parameter names are **case-insensitive** when used in **HTTP headers**, and must be **lowercase** when used as **query parameters in the URL**. They are listed in the table in their canonical form.
Author
Owner

@wunter8 commented on GitHub (Mar 12, 2023):

lgtm

<!-- gh-comment-id:1465075995 --> @wunter8 commented on GitHub (Mar 12, 2023): lgtm
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#471
No description provided.