summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-09-07 13:13:56 -0600
committertjpcc <tjp@ctrl-c.club>2023-09-07 13:13:56 -0600
commitf54ac19a41c34a9ad9f910c4814ae657bf3e7ab1 (patch)
tree7dd763163884428c0462da9f1e1590a116596720
parent38ff3807b3b97da22006b5bdcf03fdfaaa4b0582 (diff)
add the server host to gopher requests
-rw-r--r--gopher/serve.go1
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 {