From 04b6ca60151180145e10832e07525aff604d26df Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 13 Aug 2017 10:12:13 +0100 Subject: [PATCH] Fix #202 Former-commit-id: 4bfdc41566b255452ba1179f98523f51200cafd2 [formerly 194853322977723818d2fcfe860d0fa54117f9dc] [formerly 512370c90e08f58f729ab1a9d03e00ab72b1da69 [formerly 0a11c52a89643cbe7f02991832b23b85b9642a35]] Former-commit-id: 518476f3f715724ca9b4cfd65aa234006d3a3677 [formerly 7717d5bff8169c8ae5e31d3a70de35ffcd59cd72] Former-commit-id: 0414a3e51602ea9d51257036c620cfe6853103b3 --- 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) }