Skip to content

Commit

Permalink
adapt to recent ServeStream name change
Browse files Browse the repository at this point in the history
  • Loading branch information
petergardfjall committed Aug 29, 2022
1 parent a611fb8 commit f129dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/api/v1/repo/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func download(ctx *context.APIContext, archiveName string, archiver *repo_model.
return
}
defer fr.Close()
ctx.ServeStream(fr, downloadName)
ctx.ServeContent(downloadName, fr, archiver.CreatedUnix.AsLocalTime())
}

// GetEditorconfig get editor config of a repository
Expand Down

0 comments on commit f129dbb

Please sign in to comment.