Fix redirect-loop for Hugo server
authorbep <bjorn.erik.pedersen@gmail.com>
Sun, 19 Oct 2014 12:41:02 +0000 (14:41 +0200)
committerspf13 <steve.francia@gmail.com>
Sun, 2 Nov 2014 02:49:26 +0000 (22:49 -0400)
commit8cb435f1f4a4e93977a3586ec2e6438f126943cd
tree7c0dd58b52f93ecdff84ef7be4269e087add0dd2
parent5e28606b84ef230914d0e63aebe3925364ee3966
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
commands/server.go