summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkg/http/client.go2
-rw-r--r--src/pkg/http/request.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/http/client.go b/src/pkg/http/client.go
index 698c5c7f4..0b045136b 100644
--- a/src/pkg/http/client.go
+++ b/src/pkg/http/client.go
@@ -125,7 +125,7 @@ func send(req *Request) (resp *Response, err os.Error) {
return nil, err;
}
- err = req.write(conn);
+ err = req.Write(conn);
if err != nil {
conn.Close();
return nil, err;
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go
index 5319c589c..71c93bb1c 100644
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -125,7 +125,7 @@ func valueOrDefault(value, def string) string {
// TODO(rsc): Change default UserAgent before open-source release.
const defaultUserAgent = "http.Client"
-// Write an HTTP/1.1 request -- header and body -- in wire format.
+// Write writes an HTTP/1.1 request -- header and body -- in wire format.
// This method consults the following fields of req:
// Url
// Method (defaults to "GET")
@@ -135,7 +135,7 @@ const defaultUserAgent = "http.Client"
// Body
//
// If Body is present, "Transfer-Encoding: chunked" is forced as a header.
-func (req *Request) write(w io.Writer) os.Error {
+func (req *Request) Write(w io.Writer) os.Error {
uri := URLEscape(req.Url.Path);
if req.Url.RawQuery != "" {
uri += "?" + req.Url.RawQuery;