Skip to content

Commit

Permalink
Update file route
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Jul 12, 2023
1 parent e5b1726 commit 9d6381d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions route/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func InitFile() http.Handler {
fileName := path.Base(filePath)
w.Header().Add("Content-Disposition", "attachment; filename*=utf-8''"+url.PathEscape(fileName))
http.ServeFile(w, r, filePath)
//http.ServeFile(w, r, filePath)
})
}

Expand Down

0 comments on commit 9d6381d

Please sign in to comment.