From 4c4dba9ba1e91ab44fcd21c50c6df62a19cfd9e1 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Fri, 25 Aug 2023 14:52:36 -0600 Subject: gemtext -> atom converter * add GemsubToAtom converter function * add Server.Handler method and implementations fixes #1 --- gemini/serve.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gemini/serve.go') diff --git a/gemini/serve.go b/gemini/serve.go index 6fee458..5c6c979 100644 --- a/gemini/serve.go +++ b/gemini/serve.go @@ -66,7 +66,6 @@ func (s *server) handleConn(conn net.Conn) { request.TLSState = &state } - ctx := s.Ctx if request.Scheme == "titan" { len, err := sizeParam(request.Path) if err == nil { @@ -81,7 +80,7 @@ func (s *server) handleConn(conn net.Conn) { _, _ = io.Copy(conn, NewResponseReader(Failure(err))) } }() - response = s.handler.Handle(ctx, request) + response = s.handler.Handle(s.Ctx, request) if response == nil { response = NotFound("Resource does not exist.") } -- cgit v1.2.3