summaryrefslogtreecommitdiff
path: root/gemini/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'gemini/serve.go')
-rw-r--r--gemini/serve.go3
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.")
}