Skip to content

🎧 Your Personal Streaming Service

fix: don't expose JWT-related errors (#4892)

Alex Gustafsson13be8e6dfb81
diff --git a/server/public/handle_images.go b/server/public/handle_images.go
index 6de44ddd2..5b1194cc9 100644
--- a/server/public/handle_images.go
+++ b/server/public/handle_images.go
@@ -35,7 +35,7 @@ func (pub *Router) handleImages(w http.ResponseWriter, r *http.Request) {
artId, err := decodeArtworkID(id)
if err != nil {
log.Error(r, "Error decoding artwork id", "id", id, err)
- http.Error(w, err.Error(), http.StatusBadRequest)
+ http.Error(w, "invalid request", http.StatusBadRequest)
return
}
size := p.IntOr("size", 0)