Fix redirect-loop for Hugo server - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 8cb435f1f4a4e93977a3586ec2e6438f126943cd
 (DIR) parent 5e28606b84ef230914d0e63aebe3925364ee3966
 (HTM) Author: bep <bjorn.erik.pedersen@gmail.com>
       Date:   Sun, 19 Oct 2014 14:41:02 +0200
       
       Fix redirect-loop for Hugo server
       
       An extra slash was added to the path if baseUrl had a sub-directory, causing infinite redirect loop in Go's HTTP server.
       
       Fixes #510
       
       Diffstat:
         M commands/server.go                  |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/commands/server.go b/commands/server.go
       @@ -121,7 +121,7 @@ func serve(port int) {
                if u.Path == "" || u.Path == "/" {
                        http.Handle("/", fileserver)
                } else {
       -                http.Handle(u.Path+"/", http.StripPrefix(u.Path+"/", fileserver))
       +                http.Handle(u.Path, http.StripPrefix(u.Path, fileserver))
                }
        
                u.Scheme = "http"