]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: explain the "1.1" in the default User-Agent
authorRuss Cox <rsc@golang.org>
Thu, 12 Sep 2013 00:28:14 +0000 (20:28 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 12 Sep 2013 00:28:14 +0000 (20:28 -0400)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/13263052

src/pkg/net/http/request.go

index ccdf12111792ce8666b26f8c96a436fb171506c5..57b5d09484729c0474ccc60ec92ec711ed9d07b5 100644 (file)
@@ -291,6 +291,11 @@ func valueOrDefault(value, def string) string {
        return def
 }
 
+// NOTE: This is not intended to reflect the actual Go version being used.
+// It was changed from "Go http package" to "Go 1.1 package http" at the
+// time of the Go 1.1 release because the former User-Agent had ended up
+// on a blacklist for some intrusion detection systems.
+// See https://codereview.appspot.com/7532043.
 const defaultUserAgent = "Go 1.1 package http"
 
 // Write writes an HTTP/1.1 request -- header and body -- in wire format.