Skip to content

Commit

Permalink
Disable transcoding images even if transcoding is forced
Browse files Browse the repository at this point in the history
  • Loading branch information
triole authored and anacrolix committed Oct 25, 2020
1 parent abeba11 commit 138d5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlna/dms/dms.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ func (server *Server) initMux(mux *http.ServeMux) {
} else {
k = r.URL.Query().Get("transcode")
}
if k == "" {
mimeType, err := MimeTypeByPath(filePath)
mimeType, err := MimeTypeByPath(filePath)
if k == "" || mimeType.IsImage() {
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
Expand Down

0 comments on commit 138d5ac

Please sign in to comment.