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 /request.go | |
| parent | mux: Use StatusHandler instead of RedirectHandler (diff) | |
| download | go-gemini-15f3e764c55a8703d6dc9174e06e06cb1dc16868.tar.xz go-gemini-15f3e764c55a8703d6dc9174e06e06cb1dc16868.zip | |
server: Populate Request.Host field
Diffstat (limited to 'request.go')
| -rw-r--r-- | request.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -23,7 +23,9 @@ type Request struct { // For international domain names, Host may be in Punycode or // Unicode form. Use golang.org/x/net/idna to convert it to // either format if needed. - // This field is ignored by the Gemini server. + // + // For server requests, Host specifies the host on which the URL + // is sought. Host string // For client requests, Certificate optionally specifies the |