From 0a11c52a89643cbe7f02991832b23b85b9642a35 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 13 Aug 2017 10:12:13 +0100 Subject: [PATCH] Fix #202 --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 392fbe40..26eb455b 100644 --- a/http.go +++ b/http.go @@ -67,7 +67,7 @@ func serveHTTP(c *RequestContext, w http.ResponseWriter, r *http.Request) (int, return c.StaticGen.Preview(c, w, r) } - if strings.HasPrefix(r.URL.Path, "/share/") && c.StaticGen != nil { + if strings.HasPrefix(r.URL.Path, "/share/") { r.URL.Path = strings.TrimPrefix(r.URL.Path, "/share/") return sharePage(c, w, r) }