remove useless comments
This commit is contained in:
parent
7f0c8d2cb1
commit
c527f7a4b8
2
main.go
2
main.go
|
@ -251,9 +251,7 @@ func apiStream(e echo.Context, directory, url string) error {
|
||||||
|
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
if file.RelativePath == path {
|
if file.RelativePath == path {
|
||||||
// stat, _ := os.Stat(file.Path)
|
|
||||||
e.Response().Header().Del("Content-Length")
|
e.Response().Header().Del("Content-Length")
|
||||||
// e.Response().Header().Set("Content-Length", string(stat.Size()))
|
|
||||||
http.ServeFile(e.Response(), e.Request(), file.Path)
|
http.ServeFile(e.Response(), e.Request(), file.Path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue