aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-23 20:59:04 -0500
committerAdnan Maolood <[email protected]>2021-02-23 20:59:04 -0500
commitd35dd3d8676dba18986e2704316a77371bd4a002 (patch)
tree34590f1801ced31ce5255855b4b6cbf2f996accc /server.go
parentrequest: Remove TLS and Conn methods (diff)
downloadgo-gemini-d35dd3d8676dba18986e2704316a77371bd4a002.tar.xz
go-gemini-d35dd3d8676dba18986e2704316a77371bd4a002.zip
ResponseWriter: Add TLS and Conn methods
Diffstat (limited to 'server.go')
-rw-r--r--server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.go b/server.go
index 21634e2..dc327c6 100644
--- a/server.go
+++ b/server.go
@@ -360,6 +360,7 @@ func (srv *Server) serveConn(ctx context.Context, conn net.Conn) error {
}
w := NewResponseWriter(cw)
+ w.conn = conn
req, err := ReadRequest(r)
if err != nil {