mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 04:01:29 +00:00
Remote empty line
This commit is contained in:
parent
1eab11ca90
commit
b7d1afbf86
@ -238,7 +238,6 @@ func (output *BeegoOutput) XML(data interface{}, hasIndent bool) error {
|
|||||||
// Download forces response for download file.
|
// Download forces response for download file.
|
||||||
// it prepares the download response header automatically.
|
// it prepares the download response header automatically.
|
||||||
func (output *BeegoOutput) Download(file string, filename ...string) {
|
func (output *BeegoOutput) Download(file string, filename ...string) {
|
||||||
|
|
||||||
// check get file error, file not found or other error.
|
// check get file error, file not found or other error.
|
||||||
if _, err := os.Stat(file); err != nil {
|
if _, err := os.Stat(file); err != nil {
|
||||||
http.ServeFile(output.Context.ResponseWriter, output.Context.Request, file)
|
http.ServeFile(output.Context.ResponseWriter, output.Context.Request, file)
|
||||||
|
Loading…
Reference in New Issue
Block a user