diff --git a/client.go b/client.go index f1f7f45..504fd18 100644 --- a/client.go +++ b/client.go @@ -28,6 +28,7 @@ type Request struct { URL *url.URL // For client requests, Host specifies the host on which the URL is sought. + // Host must contain a port. // This field is ignored by the server. Host string diff --git a/examples/client/client.go b/examples/client/client.go index 9e7cc37..22c96de 100644 --- a/examples/client/client.go +++ b/examples/client/client.go @@ -47,7 +47,7 @@ func init() { } } -// sendRequest sends a request to the given url. +// sendRequest sends a request to the given URL. func sendRequest(req *gmi.Request) error { resp, err := client.Send(req) if err != nil { diff --git a/server.go b/server.go index b6fc341..b3ec45c 100644 --- a/server.go +++ b/server.go @@ -212,7 +212,7 @@ func InputHandler(prompt string) Handler { }) } -// Redirect replies to the request with a redirect to the given url. +// Redirect replies to the request with a redirect to the given URL. func Redirect(rw *ResponseWriter, req *Request, url string) { rw.WriteHeader(StatusRedirect, url) }