Skip to content

Commit

Permalink
added content-disposition header (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
varbhat authored Mar 13, 2023
1 parent 5bbc905 commit d73c8b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlna/dms/dms.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ func (server *Server) initMux(mux *http.ServeMux) {
return
}
w.Header().Set("Content-Type", string(mimeType))
w.Header().Set("Content-Disposition", "attachment; filename="+strconv.Quote(path.Base(filePath)))
http.ServeFile(w, r, filePath)
return
}
Expand Down

0 comments on commit d73c8b1

Please sign in to comment.