aboutsummaryrefslogtreecommitdiff
path: root/request.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-20 13:30:55 -0500
committerAdnan Maolood <[email protected]>2021-02-20 13:30:55 -0500
commit0ab236c736c46cc069ae74e8ab324aa629e61270 (patch)
tree2ebfaf2ddac5b987d471c6c3e85cdacfe224f7b0 /request.go
parentImplement TimeoutHandler (diff)
downloadgo-gemini-0ab236c736c46cc069ae74e8ab324aa629e61270.tar.xz
go-gemini-0ab236c736c46cc069ae74e8ab324aa629e61270.zip
client: Allow Request.Host to omit a port
Diffstat (limited to 'request.go')
-rw-r--r--request.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/request.go b/request.go
index b111388..5356112 100644
--- a/request.go
+++ b/request.go
@@ -19,7 +19,7 @@ type Request struct {
URL *url.URL
// For client requests, Host optionally specifies the server to
- // connect to. It must be of the form "host:port".
+ // connect to. It may be of the form "host" or "host:port".
// If empty, the value of URL.Host is used.
// For international domain names, Host may be in Punycode or
// Unicode form. Use golang.org/x/net/idna to convert it to