1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-23 08:32:02 +01:00

Clarify comment

This commit is contained in:
adnano 2020-09-27 22:13:50 -04:00
parent 4197d51545
commit 1c89de359c
3 changed files with 3 additions and 2 deletions

@ -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

@ -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 {

@ -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)
}