mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-02-25 14:03:09 -06:00
mediaapi/writers/download: Remove cruft
This commit is contained in:
parent
90bac42edb
commit
52b8b9b8fe
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue