summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-10-19 10:09:04 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-10-19 10:09:04 +0200
commit3164103310fbca1211cfa9ce4a5eb7437854b6ad (patch)
treee02a799829820659b3fdec508912568f63c1a368 /commands/server.go
parent6a5170116c5c4d90fcb31d43870d44f68860a0d4 (diff)
commands: Support Fast Render mode with sub-path in baseURL
Fixes #3981
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go
index 8c22d1d97..e2d37f165 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -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)
}