Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Jan 12, 2025
1 parent c336985 commit 03537fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/routes_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ func (rs imageRoutes) image(w http.ResponseWriter, r *http.Request) {

service := image.GetService(imageRepo)
reader, err := service.Read(*databaseImage)
defer reader.Close()
if err != nil {
http.Error(w, err.Error(), http.StatusNotFound)
return
}
defer reader.Close()

if databaseImage.Width == -1 {
w.Header().Add("Content-Type", "image/svg+xml")
Expand Down

0 comments on commit 03537fe

Please sign in to comment.