From 03699762129e4a56abbdcbe24e36b2df7e319149 Mon Sep 17 00:00:00 2001 From: amutake Date: Tue, 30 Dec 2014 06:04:46 +0900 Subject: [PATCH] Remove first dot --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 6dd3656..e493bf5 100644 --- a/main.go +++ b/main.go @@ -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