allow user agent to mention Go.

R=r
http://go/go-review/1024046
This commit is contained in:
Russ Cox 2009-11-10 09:10:08 -08:00
parent cc6720aab7
commit cb94b60cfb

View File

@ -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: