From f54ac19a41c34a9ad9f910c4814ae657bf3e7ab1 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Thu, 7 Sep 2023 13:13:56 -0600 Subject: add the server host to gopher requests --- gopher/serve.go | 1 + 1 file changed, 1 insertion(+) (limited to 'gopher/serve.go') diff --git a/gopher/serve.go b/gopher/serve.go index 56b38f6..d78150c 100644 --- a/gopher/serve.go +++ b/gopher/serve.go @@ -50,6 +50,7 @@ func (gs *gopherServer) handleConn(conn net.Conn) { } else { request.Server = gs request.RemoteAddr = conn.RemoteAddr() + request.Host = gs.Host defer func() { if r := recover(); r != nil { -- cgit v1.2.3