From: Russ Cox Date: Tue, 10 Nov 2009 17:10:08 +0000 (-0800) Subject: allow user agent to mention Go. X-Git-Tag: weekly.2009-11-10~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cb94b60cfb240a654836c71503438fa12815ba8c;p=gostls13.git allow user agent to mention Go. R=r http://go/go-review/1024046 --- 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: