Fix spelling (#2498)

This commit is contained in:
John Bampton
2020-09-14 12:40:20 +10:00
committed by GitHub
parent 1f232c7f47
commit 3100b7cb05
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -973,7 +973,7 @@ func (c *Context) File(filepath string) {
http.ServeFile(c.Writer, c.Request, filepath)
}
// FileFromFS writes the specified file from http.FileSytem into the body stream in an efficient way.
// FileFromFS writes the specified file from http.FileSystem into the body stream in an efficient way.
func (c *Context) FileFromFS(filepath string, fs http.FileSystem) {
defer func(old string) {
c.Request.URL.Path = old