From 2ef530daa47b301a40c1ee93cd43b8f36fc68c0b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 17 Jan 2023 15:59:29 -0700 Subject: pull request, response, handlers out of the gemini package --- examples/inspectls/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/inspectls/main.go') diff --git a/examples/inspectls/main.go b/examples/inspectls/main.go index d690af1..65c5229 100644 --- a/examples/inspectls/main.go +++ b/examples/inspectls/main.go @@ -12,6 +12,7 @@ import ( "os" "strings" + "tildegit.org/tjp/gus" guslog "tildegit.org/tjp/gus/contrib/log" "tildegit.org/tjp/gus/gemini" ) @@ -51,7 +52,7 @@ func envConfig() (string, string) { return certfile, keyfile } -func inspectHandler(ctx context.Context, req *gemini.Request) *gemini.Response { +func inspectHandler(ctx context.Context, req *gus.Request) *gus.Response { // build and return a ```-wrapped description of the connection TLS state body := "```\n" + displayTLSState(req.TLSState) + "\n```" return gemini.Success("text/gemini", bytes.NewBufferString(body)) -- cgit v1.2.3