diff options
Diffstat (limited to 'internal/handler/websocket/handler.go')
| -rw-r--r-- | internal/handler/websocket/handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/handler/websocket/handler.go b/internal/handler/websocket/handler.go index a23dd60..de71926 100644 --- a/internal/handler/websocket/handler.go +++ b/internal/handler/websocket/handler.go | |||
| @@ -265,7 +265,7 @@ func (h *Handler) handleEvent(ctx context.Context, conn *websocket.Conn, raw []j | |||
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | if err := h.requireAuth(ctx, conn, true, state); err != nil { | 267 | if err := h.requireAuth(ctx, conn, true, state); err != nil { |
| 268 | status = "error" | 268 | status = "unauthorized" |
| 269 | h.sendOK(ctx, conn, event.ID, false, err.Error()) | 269 | h.sendOK(ctx, conn, event.ID, false, err.Error()) |
| 270 | return nil | 270 | return nil |
| 271 | } | 271 | } |
| @@ -371,7 +371,7 @@ func (h *Handler) handleReq(ctx context.Context, conn *websocket.Conn, raw []jso | |||
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | if err := h.requireAuth(ctx, conn, false, state); err != nil { | 373 | if err := h.requireAuth(ctx, conn, false, state); err != nil { |
| 374 | status = "error" | 374 | status = "unauthorized" |
| 375 | return err | 375 | return err |
| 376 | } | 376 | } |
| 377 | 377 | ||
