mediaapi/writers/download: Remove cruft

This commit is contained in:
Robert Swain 2017-04-28 17:15:00 +02:00
parent 90bac42edb
commit 52b8b9b8fe

View file

@ -94,9 +94,6 @@ func Download(w http.ResponseWriter, req *http.Request, serverName string, media
return return
} }
// TODO:
// - query db to look up content type and disposition and whether we have the file
logger.Warnln(r.MediaID, r.ServerName, cfg.ServerName)
contentType, contentDisposition, fileSize, filename, err := db.GetMedia(r.MediaID, r.ServerName) contentType, contentDisposition, fileSize, filename, err := db.GetMedia(r.MediaID, r.ServerName)
if err != nil { if err != nil {
if strings.Compare(r.ServerName, cfg.ServerName) != 0 { if strings.Compare(r.ServerName, cfg.ServerName) != 0 {