]> Cypherpunks repositories - gostls13.git/commitdiff
allow user agent to mention Go.
authorRuss Cox <rsc@golang.org>
Tue, 10 Nov 2009 17:10:08 +0000 (09:10 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 10 Nov 2009 17:10:08 +0000 (09:10 -0800)
R=r
http://go/go-review/1024046

src/pkg/http/request.go

index c91ca3a00b3142efacf95be0a0ccc8fec6085ccb..5c6ce9099bad4b984afede77d3165ef83da22d7d 100644 (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: