Compare commits

..

No commits in common. "4955fb9d0328a3c8d31b1b3d2ad743cc9768ec17" and "f1ac0dd6ff0046b4ca12babe024a7da9d63ffb19" have entirely different histories.

View file

@ -244,7 +244,7 @@ func (engine *Engine) StaticFS(relativePath string, fs http.FileSystem) {
relativePath += "/" relativePath += "/"
} }
fileServer := http.StripPrefix(relativePath, http.FileServer(fs)) fileServer := http.FileServer(fs)
engine.ANY(relativePath+"*filepath", GetStaticFSHandleFunc(fileServer)) engine.ANY(relativePath+"*filepath", GetStaticFSHandleFunc(fileServer))
} }
@ -258,7 +258,7 @@ func (group *RouterGroup) StaticFS(relativePath string, fs http.FileSystem) {
relativePath += "/" relativePath += "/"
} }
fileServer := http.StripPrefix(relativePath, http.FileServer(fs)) fileServer := http.FileServer(fs)
group.ANY(relativePath+"*filepath", GetStaticFSHandleFunc(fileServer)) group.ANY(relativePath+"*filepath", GetStaticFSHandleFunc(fileServer))
} }