Another small change that should fix the caching problem.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user