diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-07 13:13:56 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-07 13:13:56 -0600 |
commit | f54ac19a41c34a9ad9f910c4814ae657bf3e7ab1 (patch) | |
tree | 7dd763163884428c0462da9f1e1590a116596720 /gopher/serve.go | |
parent | 38ff3807b3b97da22006b5bdcf03fdfaaa4b0582 (diff) |
add the server host to gopher requests
Diffstat (limited to 'gopher/serve.go')
-rw-r--r-- | gopher/serve.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |