From 7f6a7e22a8e93364d6d853c5983f8c0624c21165 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 11 Sep 2013 20:28:14 -0400 Subject: [PATCH] net/http: explain the "1.1" in the default User-Agent R=golang-dev, adg CC=golang-dev https://golang.org/cl/13263052 --- src/pkg/net/http/request.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pkg/net/http/request.go b/src/pkg/net/http/request.go index ccdf121117..57b5d09484 100644 --- a/src/pkg/net/http/request.go +++ b/src/pkg/net/http/request.go @@ -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. -- 2.48.1