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 | 751ef9b071fa798152d42b8273dd422ac9542881 (patch) | |
| tree | 7d0b2792f6a2d82b98fe7727e7e5099c582a2bc8 /src/pkg/http/request.go | |
| parent | 6defb5e0e9464be96a02381e7369e5a07d0b7983 (diff) | |
| download | golang-751ef9b071fa798152d42b8273dd422ac9542881.tar.gz | |
allow user agent to mention Go.
R=r
http://go/go-review/1024046
Diffstat (limited to 'src/pkg/http/request.go')
| -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 c91ca3a00..5c6ce9099 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: |
