From c527f7a4b87703f3e7626b0e93711624ea7c4116 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 23 Aug 2022 08:51:29 +0200 Subject: [PATCH] remove useless comments --- main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.go b/main.go index e4e6e57..42829bf 100644 --- a/main.go +++ b/main.go @@ -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) } }