cmd/sgblog/http.go | 4 ++-- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index dd97cc8500de7aeac96f7bb5f10845110ce110353247870bf37ea7053f44a296..9e5671cbca7ceda714547a1eeae6f5183aad3003e2375e64ec17f6f171d7a0e2 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -171,8 +171,8 @@ if err != nil { log.Fatalln(err) } - pathInfo, exists := os.LookupEnv("PATH_INFO") - if !exists { + pathInfo := os.Getenv("PATH_INFO") + if len(pathInfo) == 0 { pathInfo = "/" } queryValues, err := url.ParseQuery(os.Getenv("QUERY_STRING"))