diff options
Diffstat (limited to 'contrib/cgi/gopher.go')
-rw-r--r-- | contrib/cgi/gopher.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cgi/gopher.go b/contrib/cgi/gopher.go index 29bfdba..4378eb7 100644 --- a/contrib/cgi/gopher.go +++ b/contrib/cgi/gopher.go @@ -17,7 +17,7 @@ import ( // the URI path. func GopherCGIDirectory(pathRoot, fsRoot string) gus.Handler { fsRoot = strings.TrimRight(fsRoot, "/") - return func(ctx context.Context, request *gus.Request) *gus.Response { + return gus.HandlerFunc(func(ctx context.Context, request *gus.Request) *gus.Response { if !strings.HasPrefix(request.Path, pathRoot) { return nil } @@ -41,5 +41,5 @@ func GopherCGIDirectory(pathRoot, fsRoot string) gus.Handler { } return gopher.File(0, stdout) - } + }) } |