1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-18 12:04:13 +00:00

Remote empty line

This commit is contained in:
YuShuangqi 2016-03-24 08:35:42 +08:00
parent 1eab11ca90
commit b7d1afbf86

View File

@ -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)