mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #1338] [MERGED] Websocket http error codes #1570
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1570
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1338
Author: @wunter8
Created: 5/14/2025
Status: ✅ Merged
Merged: 5/22/2025
Merged by: @binwiederhier
Base:
main← Head:websockets-401📝 Commits (2)
f110472fix typocdae549write http errors to websocket connection instead of always 200📊 Changes
1 file changed (+5 additions, -4 deletions)
View changed files
📝
server/server.go(+5 -4)📄 Description
Fixes #1337
I spent a long time working with someone on Discord to figure out why ntfy was returning a
200code on a websocket request instead of the expected101.We finally figured out the issue was that the request wasn't authorized. Turns out, ntfy was swallowing the 403 error and not writing anything to the websocket connection. An empty response was treated as a
200 OK.Now, ntfy will write the error codes to the websocket connection (but it still will not write any response body). So, if you try accessing a read-restricted topic using websockets now, it will correctly respond with
403 Forbiddeninstead of200 OK.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.