commands: Support Fast Render mode with sub-path in baseURL

Fixes #3981
This commit is contained in:
Bjørn Erik Pedersen
2017-10-19 10:09:04 +02:00
parent 6a5170116c
commit 3164103310
2 changed files with 3 additions and 2 deletions

View File

@@ -238,7 +238,7 @@ func (c *commandeer) serve(port int) {
}
if fastRenderMode {
p := r.URL.Path
p := r.RequestURI
if strings.HasSuffix(p, "/") || strings.HasSuffix(p, "html") || strings.HasSuffix(p, "htm") {
c.visitedURLs.Add(p)
}