Another small change that should fix the caching problem.

This commit is contained in:
2020-12-02 20:06:28 +01:00
parent c21b66e0d9
commit cda32daacf
5 changed files with 25 additions and 23 deletions

View File

@@ -263,7 +263,7 @@ func sendFile(writer http.ResponseWriter, request *http.Request, Filename string
FileSize := strconv.FormatInt(FileStat.Size(), 10) //Get file size as a string
//Send the headers
writer.Header().Set("Content-Disposition", "attachment; filename="+Filename)
//writer.Header().Set("Content-Disposition", "attachment; filename="+Filename)
writer.Header().Set("Content-Type", "audio/mpeg")
writer.Header().Set("Content-Length", FileSize)