summaryrefslogtreecommitdiff
path: root/gopher/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopher/serve.go')
-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 {