diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-08-25 14:52:36 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-08-26 09:26:23 -0600 |
commit | 4c4dba9ba1e91ab44fcd21c50c6df62a19cfd9e1 (patch) | |
tree | 56e925d5453a0b72edbae5f3f55657d353daab0f /gemini/serve.go | |
parent | ff57f73c72dc75cc19e015a1b6e98c6203511c44 (diff) |
gemtext -> atom converter
* add GemsubToAtom converter function
* add Server.Handler method and implementations
fixes #1
Diffstat (limited to 'gemini/serve.go')
-rw-r--r-- | gemini/serve.go | 3 |
1 files changed, 1 insertions, 2 deletions
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.") } |