Skip to content

Allow HTTP URLs for notification webhooks#555

Merged
therobbiedavis merged 5 commits intoListenarrs:canaryfrom
lhanson:issue-545
May 1, 2026
Merged

Allow HTTP URLs for notification webhooks#555
therobbiedavis merged 5 commits intoListenarrs:canaryfrom
lhanson:issue-545

Conversation

@lhanson
Copy link
Copy Markdown
Contributor

@lhanson lhanson commented Apr 29, 2026

Summary

Addresses #545

Changes

Changed

  • Allow either HTTP or HTTPS for notification webhook URLs

@lhanson lhanson requested a review from a team April 29, 2026 01:01
@therobbiedavis therobbiedavis added the minor minor version bump - add functionality in a backward compatible manner label Apr 29, 2026
Copy link
Copy Markdown
Collaborator

@therobbiedavis therobbiedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lhanson Simple and easy. Thanks! However we currently do not have any tests for this, could you add regression coverage for this in NotificationsTab.spec.ts? That spec currently only covers the loading state, so the URL scheme behavior is untested.

Suggested cases:

  • accepts https://ntfy.tld.com/topic
  • accepts http://ntfy.local/topic
  • rejects a non-HTTP(S) scheme such as ftp://ntfy.local/topic

That would prove the reported LAN/self-hosted webhook case and guard against accidentally restoring HTTPS-only validation later.

@lhanson lhanson requested a review from therobbiedavis April 29, 2026 18:34
@lhanson
Copy link
Copy Markdown
Contributor Author

lhanson commented Apr 29, 2026

Test cases added, thanks for those suggestions.

@therobbiedavis
Copy link
Copy Markdown
Collaborator

@lhanson Can you rebase this? There is now a rebase conflict so I can not do it from my side unless I commit it myself.

Thanks!

@therobbiedavis
Copy link
Copy Markdown
Collaborator

@lhanson The unit test is failing.

/home/runner/work/Listenarr/Listenarr/fe/src/__tests__/NotificationsTab.spec.ts
Error:   58:32  error  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

@lhanson
Copy link
Copy Markdown
Contributor Author

lhanson commented May 1, 2026

Should be fixed now.

@therobbiedavis therobbiedavis merged commit 39d83ee into Listenarrs:canary May 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor minor version bump - add functionality in a backward compatible manner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants