Skip to content

Commit aaf4249

Browse files
authored
resolve #19 (#49)
1 parent 3ac0dd7 commit aaf4249

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

swagger.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"sync"
88

99
"github.com/labstack/echo/v4"
10-
"github.com/swaggo/files"
10+
swaggerFiles "github.com/swaggo/files"
1111
"github.com/swaggo/swag"
1212
)
1313

@@ -84,6 +84,8 @@ func EchoWrapHandler(configFns ...func(c *Config)) echo.HandlerFunc {
8484
handler.Prefix = matches[1]
8585
})
8686

87+
defer c.Response().Flush()
88+
8789
switch path {
8890
case "index.html":
8991
_ = index.Execute(c.Response().Writer, config)

0 commit comments

Comments
 (0)