diff options
| author | Adnan Maolood <[email protected]> | 2021-02-20 18:12:51 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-20 18:12:51 -0500 |
| commit | 15f3e764c55a8703d6dc9174e06e06cb1dc16868 (patch) | |
| tree | 18a64aeffdc8d737d3521ffbeac8ea40aba2fdd5 /server.go | |
| parent | mux: Use StatusHandler instead of RedirectHandler (diff) | |
| download | archived-go-gemini-15f3e764c55a8703d6dc9174e06e06cb1dc16868.tar.xz archived-go-gemini-15f3e764c55a8703d6dc9174e06e06cb1dc16868.zip | |
server: Populate Request.Host field
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -291,6 +291,7 @@ func (srv *Server) respond(conn net.Conn) { if tlsConn, ok := conn.(*tls.Conn); ok { state := tlsConn.ConnectionState() req.TLS = &state + req.Host = state.ServerName } // Store remote address |