File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
33Filesystem middleware for [ Fiber] ( https://github.com/gofiber/fiber ) that enables you to serve files from a directory.
44
5- ⚠️ ** ` :params ` & ` :optionals? ` within the prefix path are not supported!**
5+ ⚠️ ** ` :params ` & ` :optionals? ` within the prefix path are not supported!**
6+ ⚠️ ** To handle paths with spaces (or other url encoded values) make sure to set ` fiber.Config{ UnescapePath: true} ` **
67
78## Table of Contents
89
Original file line number Diff line number Diff line change @@ -64,7 +64,11 @@ var ConfigDefault = Config{
6464 MaxAge : 0 ,
6565}
6666
67- // New creates a new middleware handler
67+ // New creates a new middleware handler.
68+ //
69+ // filesystem does not handle url encoded values (for example spaces)
70+ // on it's own. If you need that functionality, set "UnescapePath"
71+ // in fiber.Config
6872func New (config ... Config ) fiber.Handler {
6973 // Set default config
7074 cfg := ConfigDefault
You can’t perform that action at this time.
0 commit comments