show in browser
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 39s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 39s
This commit is contained in:
2
main.go
2
main.go
@@ -188,7 +188,7 @@ func main() {
|
||||
}
|
||||
w.Header().Set("Content-Type", esimateMimeType(fileName))
|
||||
w.Header().Set("Cache-Control", "public; max-age=60")
|
||||
w.Header().Set("Content-Disposition", "attachment; filename=\""+fileName+"\"")
|
||||
//w.Header().Set("Content-Disposition", "attachment; filename=\""+fileName+"\"")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
io.Copy(w, content)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user