swap lcoal function

This commit is contained in:
Your Name 2018-08-24 13:07:20 +00:00
parent a8401d3b38
commit 8c24068b20
2 changed files with 2 additions and 1 deletions

View File

@ -715,7 +715,7 @@ type fileHandler struct {
// As a special case, the returned file server redirects any request // As a special case, the returned file server redirects any request
// ending in "/index.html" to the same path, without the final // ending in "/index.html" to the same path, without the final
// "index.html". // "index.html".
func FileServer(root FileSystem) http.Handler { func FileServer(root http.FileSystem) http.Handler {
return &fileHandler{root} return &fileHandler{root}
} }

View File

@ -2,6 +2,7 @@ package main
import ( import (
"gitto.work/shortcut/enhancedfileserver" "gitto.work/shortcut/enhancedfileserver"
"log"
"net/http" "net/http"
"os" "os"
) )