aboutsummaryrefslogtreecommitdiff
path: root/request.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-20 18:12:51 -0500
committerAdnan Maolood <[email protected]>2021-02-20 18:12:51 -0500
commit15f3e764c55a8703d6dc9174e06e06cb1dc16868 (patch)
tree18a64aeffdc8d737d3521ffbeac8ea40aba2fdd5 /request.go
parentmux: Use StatusHandler instead of RedirectHandler (diff)
downloadgo-gemini-15f3e764c55a8703d6dc9174e06e06cb1dc16868.tar.xz
go-gemini-15f3e764c55a8703d6dc9174e06e06cb1dc16868.zip
server: Populate Request.Host field
Diffstat (limited to 'request.go')
-rw-r--r--request.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/request.go b/request.go
index e75f040..1d9e1b4 100644
--- a/request.go
+++ b/request.go
@@ -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