Skip to content

Commit f129dbb

Browse files
adapt to recent ServeStream name change
1 parent a611fb8 commit f129dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func download(ctx *context.APIContext, archiveName string, archiver *repo_model.
341341
return
342342
}
343343
defer fr.Close()
344-
ctx.ServeStream(fr, downloadName)
344+
ctx.ServeContent(downloadName, fr, archiver.CreatedUnix.AsLocalTime())
345345
}
346346

347347
// GetEditorconfig get editor config of a repository

0 commit comments

Comments
 (0)