aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-01-10 01:07:38 -0500
committerAdnan Maolood <[email protected]>2021-01-10 01:07:38 -0500
commit5e977250ecdbf2ca033694d014d14466e54bb615 (patch)
tree1d02eee4fdbfebd98699af81c3d52d04576158aa
parentUpdate link to documentation (diff)
downloadgo-gemini-5e977250ecdbf2ca033694d014d14466e54bb615.tar.xz
go-gemini-5e977250ecdbf2ca033694d014d14466e54bb615.zip
Update comments
-rw-r--r--request.go1
-rw-r--r--response.go4
2 files changed, 2 insertions, 3 deletions
diff --git a/request.go b/request.go
index 03ea062..32cd1ab 100644
--- a/request.go
+++ b/request.go
@@ -21,7 +21,6 @@ type Request struct {
Host string
// Certificate specifies the TLS certificate to use for the request.
- // Request certificates take precedence over client certificates.
//
// On the server side, if the client provided a certificate then
// Certificate.Leaf is guaranteed to be non-nil.
diff --git a/response.go b/response.go
index e603e3b..2d7cd7b 100644
--- a/response.go
+++ b/response.go
@@ -13,7 +13,7 @@ type Response struct {
Status Status
// Meta contains more information related to the response status.
- // For successful responses, Meta should contain the mimetype of the response.
+ // For successful responses, Meta should contain the media type of the response.
// For failure responses, Meta should contain a short description of the failure.
// Meta should not be longer than 1024 bytes.
Meta string
@@ -115,7 +115,7 @@ func (b *readCloserBody) Read(p []byte) (n int, err error) {
return b.ReadCloser.Read(p)
}
-// ResponseWriter is used by a Gemini handler to construct a Gemini response.
+// ResponseWriter is used to construct a Gemini response.
type ResponseWriter struct {
b *bufio.Writer
status Status