From 52b8b9b8fe325ffd77e84308c232074c0acadde0 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Fri, 28 Apr 2017 17:15:00 +0200 Subject: [PATCH] mediaapi/writers/download: Remove cruft --- .../matrix-org/dendrite/mediaapi/writers/download.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go index 239eb294d..6dbc00228 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/writers/download.go @@ -94,9 +94,6 @@ func Download(w http.ResponseWriter, req *http.Request, serverName string, media 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) if err != nil { if strings.Compare(r.ServerName, cfg.ServerName) != 0 {