aboutsummaryrefslogtreecommitdiff
path: root/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'request.go')
-rw-r--r--request.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/request.go b/request.go
index 138fc15..a18dcab 100644
--- a/request.go
+++ b/request.go
@@ -65,8 +65,8 @@ func NewRequestFromURL(url *url.URL) *Request {
}
}
-// write writes the Gemini request to the provided buffered writer.
-func (r *Request) write(w *bufio.Writer) error {
+// Write writes the Gemini request to the provided buffered writer.
+func (r *Request) Write(w *bufio.Writer) error {
url := r.URL.String()
// User is invalid
if r.URL.User != nil || len(url) > 1024 {