diff options
Diffstat (limited to 'contrib/cgi/gemini.go')
-rw-r--r-- | contrib/cgi/gemini.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/cgi/gemini.go b/contrib/cgi/gemini.go index 1587037..d245c8e 100644 --- a/contrib/cgi/gemini.go +++ b/contrib/cgi/gemini.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "tildegit.org/tjp/gus" - "tildegit.org/tjp/gus/gemini" + sr "tildegit.org/tjp/sliderule" + "tildegit.org/tjp/sliderule/gemini" ) // GeminiCGIDirectory runs any executable files relative to a root directory on the file system. @@ -15,9 +15,9 @@ import ( // a request for /foo/bar/baz can also run an executable found at /foo or /foo/bar. In // such a case the PATH_INFO environment variable will include the remaining portion of // the URI path. -func GeminiCGIDirectory(pathRoot, fsRoot string) gus.Handler { +func GeminiCGIDirectory(pathRoot, fsRoot string) sr.Handler { fsRoot = strings.TrimRight(fsRoot, "/") - return gus.HandlerFunc(func(ctx context.Context, request *gus.Request) *gus.Response { + return sr.HandlerFunc(func(ctx context.Context, request *sr.Request) *sr.Response { if !strings.HasPrefix(request.Path, pathRoot) { return nil } |