Remove first dot

This commit is contained in:
amutake 2014-12-30 06:04:46 +09:00
parent d5641e1d4f
commit 0369976212
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
func handler(w http.ResponseWriter, r *http.Request) {
path := "." + r.URL.Path
fmt.Print(path)
fmt.Print(r.URL.Path)
file, err := os.Stat(path)
if err == nil && !file.IsDir() {
// file exists