remove useless comments

This commit is contained in:
Simon Vieille 2022-08-23 08:51:29 +02:00
parent 7f0c8d2cb1
commit c527f7a4b8
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -251,9 +251,7 @@ func apiStream(e echo.Context, directory, url string) error {
for _, file := range files {
if file.RelativePath == path {
// stat, _ := os.Stat(file.Path)
e.Response().Header().Del("Content-Length")
// e.Response().Header().Set("Content-Length", string(stat.Size()))
http.ServeFile(e.Response(), e.Request(), file.Path)
}
}