diff options
author | Russ Cox <rsc@golang.org> | 2009-11-10 09:10:08 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-10 09:10:08 -0800 |
commit | cb94b60cfb240a654836c71503438fa12815ba8c (patch) | |
tree | 651e538fee87f9c6221d78ea59469e258a7fff2f | |
parent | cc6720aab7555190d0e19a04fd7b8e69caa17923 (diff) | |
download | go-cb94b60cfb240a654836c71503438fa12815ba8c.tar.gz go-cb94b60cfb240a654836c71503438fa12815ba8c.zip |
allow user agent to mention Go.
R=r
http://go/go-review/1024046
-rw-r--r-- | src/pkg/http/request.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index c91ca3a00b..5c6ce9099b 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -120,8 +120,7 @@ func valueOrDefault(value, def string) string { return def; } -// TODO(rsc): Change default UserAgent before open-source release. -const defaultUserAgent = "http.Client" +const defaultUserAgent = "Go http package" // Write writes an HTTP/1.1 request -- header and body -- in wire format. // This method consults the following fields of req: |