diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-05-01 07:56:25 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-05-01 07:56:25 -0600 |
commit | 9a2da81b11ad0064cca24ce7974827d032309369 (patch) | |
tree | 4313224dc089208423e78bffc3ec50833e35bcea /contrib/cgi/spartan.go | |
parent | 21e2758145d100d74013060f7090d84679cae683 (diff) |
name change gus -> sliderule
Diffstat (limited to 'contrib/cgi/spartan.go')
-rw-r--r-- | contrib/cgi/spartan.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/cgi/spartan.go b/contrib/cgi/spartan.go index 01ebb19..6994466 100644 --- a/contrib/cgi/spartan.go +++ b/contrib/cgi/spartan.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "tildegit.org/tjp/gus" - "tildegit.org/tjp/gus/spartan" + sr "tildegit.org/tjp/sliderule" + "tildegit.org/tjp/sliderule/spartan" ) // SpartanCGIDirectory runs executable files relative to a root directory in the file system. @@ -14,9 +14,9 @@ import ( // It will also find any run any executable _part way_ through the path, so for example 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. -func SpartanCGIDirectory(pathRoot, fsRoot string) gus.Handler { +func SpartanCGIDirectory(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 } |