mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 23:40:50 +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.
|
||||
// it prepares the download response header automatically.
|
||||
func (output *BeegoOutput) Download(file string, filename ...string) {
|
||||
|
||||
// check get file error, file not found or other error.
|
||||
if _, err := os.Stat(file); err != nil {
|
||||
http.ServeFile(output.Context.ResponseWriter, output.Context.Request, file)
|
||||
|
Loading…
Reference in New Issue
Block a user