diff options
| author | Adnan Maolood <[email protected]> | 2021-02-20 13:30:55 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-20 13:30:55 -0500 |
| commit | 0ab236c736c46cc069ae74e8ab324aa629e61270 (patch) | |
| tree | 2ebfaf2ddac5b987d471c6c3e85cdacfe224f7b0 /request.go | |
| parent | Implement TimeoutHandler (diff) | |
| download | go-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |