summaryrefslogtreecommitdiff
path: root/gopher.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopher.go')
-rw-r--r--gopher.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/gopher.go b/gopher.go
index ecef9c0..a52f05d 100644
--- a/gopher.go
+++ b/gopher.go
@@ -108,9 +108,8 @@ func addGopherCGIRoute(router *sr.Router, route RouteDirective) {
func addGopherGitRoute(router *sr.Router, route RouteDirective) {
buildAndAddRoute(router, route, func(route RouteDirective) sr.Handler {
+ subrouter := syw.GopherRouter(route.FsPath, route.Modifiers.Templates)
return sr.HandlerFunc(func(ctx context.Context, request *sr.Request) *sr.Response {
- subrouter := syw.GopherRouter(route.FsPath, route.Modifiers.Templates)
-
reqclone := cloneRequest(request)
reqclone.Path = strings.TrimPrefix(reqclone.Path, route.URLPath)