From 6c07301e32d8647680c6a4d84f93cd5644df3010 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 7 Dec 2011 20:49:26 +0900 Subject: [PATCH] gofix. --- cgiserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgiserver.go b/cgiserver.go index c855d59..eee46b4 100644 --- a/cgiserver.go +++ b/cgiserver.go @@ -32,7 +32,7 @@ func (h *CgiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { file = filepath.Join(h.Root, file) f, e := os.Stat(file) - if e != nil || f.IsDirectory() { + if e != nil || f.IsDir() { if len(h.DefaultApp) > 0 { file = h.DefaultApp } @@ -58,7 +58,7 @@ func (h *CgiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } cgih.ServeHTTP(w, r) } else { - if (f != nil && f.IsDirectory()) || file == "" { + if (f != nil && f.IsDir()) || file == "" { tmp := filepath.Join(file, "index.html") f, e = os.Stat(tmp) if e == nil {