FAQ
Change ca2b2e58fb69 broke the freebsd-amd64 build:
http://build.golang.org/log/08eda387a8b7bdf1b45f11318fe4bd85720e32f7

net/http: change user agent string

Some IDS somewhere thinks "Go http package" is a virus.
Make it something else for Go 1.1. Dumb but easy.

R=golang-dev, bradfitz, minux.ma
CC=golang-dev
https://codereview.appspot.com/7532043

http://code.google.com/p/go/source/detail?r=ca2b2e58fb69

$ tail -200 < log
encoding/base32
encoding/csv
exp/norm
hash/crc64
hash/fnv
image/color
image
image/draw
image/gif
image/jpeg
image/png
log/syslog
math/cmplx
net/http/cgi
net/http/cookiejar
net/http/fcgi
net/http/httptest
net/http/httputil
net/mail
net/rpc
net/smtp
os/user
net/rpc/jsonrpc
runtime/debug
testing
testing/iotest
testing/quick

# Testing packages.
ok cmd/api 0.029s
? cmd/cgo [no test files]
ok cmd/fix 0.023s
ok cmd/go 0.020s
? cmd/godoc [no test files]
ok cmd/gofmt 0.042s
? cmd/vet [no test files]
? cmd/yacc [no test files]
ok archive/tar 0.010s
ok archive/zip 0.082s
ok bufio 0.273s
ok bytes 0.128s
ok compress/bzip2 0.055s
ok compress/flate 0.502s
ok compress/gzip 0.014s
ok compress/lzw 0.083s
ok compress/zlib 0.791s
ok container/heap 0.008s
ok container/list 0.008s
ok container/ring 0.023s
? crypto [no test files]
ok crypto/aes 0.026s
ok crypto/cipher 0.017s
ok crypto/des 0.021s
ok crypto/dsa 0.011s
ok crypto/ecdsa 0.023s
ok crypto/elliptic 0.014s
ok crypto/hmac 0.011s
ok crypto/md5 0.010s
ok crypto/rand 0.022s
ok crypto/rc4 0.033s
ok crypto/rsa 0.119s
ok crypto/sha1 0.067s
ok crypto/sha256 0.023s
ok crypto/sha512 0.014s
ok crypto/subtle 0.012s
ok crypto/tls 0.284s
ok crypto/x509 0.620s
? crypto/x509/pkix [no test files]
ok database/sql 0.020s
ok database/sql/driver 0.010s
ok debug/dwarf 0.014s
ok debug/elf 0.019s
ok debug/gosym 0.012s
ok debug/macho 0.022s
ok debug/pe 0.082s
ok encoding/ascii85 0.009s
ok encoding/asn1 0.021s
ok encoding/base32 0.077s
ok encoding/base64 0.010s
ok encoding/binary 0.011s
ok encoding/csv 0.009s
ok encoding/gob 0.030s
ok encoding/hex 0.012s
ok encoding/json 0.022s
ok encoding/pem 0.118s
ok encoding/xml 0.027s
ok errors 0.092s
ok exp/norm 0.614s
ok expvar 0.014s
ok flag 0.011s
ok fmt 0.121s
ok go/ast 0.010s
ok go/build 0.142s
ok go/doc 0.051s
ok go/format 0.015s
ok go/parser 0.045s
ok go/printer 0.324s
ok go/scanner 0.009s
ok go/token 0.030s
ok go/types 0.790s
? hash [no test files]
ok hash/adler32 0.013s
ok hash/crc32 0.008s
ok hash/crc64 0.009s
ok hash/fnv 0.054s
ok html 0.009s
ok html/template 0.049s
ok image 0.079s
ok image/color 0.013s
ok image/draw 0.029s
? image/gif [no test files]
ok image/jpeg 0.094s
ok image/png 0.031s
ok index/suffixarray 0.021s
ok io 0.256s
ok io/ioutil 0.018s
ok log 0.032s
ok log/syslog 2.692s
ok math 0.017s
ok math/big 0.192s
ok math/cmplx 0.008s
ok math/rand 0.118s
ok mime 0.009s
ok mime/multipart 0.688s
ok net 4.968s
ok net/http 21.527s
ok net/http/cgi 0.379s
ok net/http/cookiejar 0.023s
ok net/http/fcgi 0.019s
ok net/http/httptest 0.281s
--- FAIL: TestDumpRequest (0.00 seconds)
dump_test.go:127: DumpRequestOut 2, expecting:
GET /foo HTTP/1.1
Host: example.com
User-Agent: Go http package
Accept-Encoding: gzip


Got:
GET /foo HTTP/1.1
Host: example.com
User-Agent: Go 1.1 package http
Accept-Encoding: gzip


dump_test.go:127: DumpRequestOut 3, expecting:
GET /foo HTTP/1.1
Host: example.com
User-Agent: Go http package
Accept-Encoding: gzip


Got:
GET /foo HTTP/1.1
Host: example.com
User-Agent: Go 1.1 package http
Accept-Encoding: gzip


FAIL
FAIL net/http/httputil 1.006s
? net/http/pprof [no test files]
ok net/mail 0.060s
ok net/rpc 17.385s
ok net/rpc/jsonrpc 0.020s
ok net/smtp 0.612s
ok net/textproto 0.013s
ok net/url 0.016s
ok os 0.252s
ok os/exec 0.556s
ok os/signal 0.123s
ok os/user 0.021s
ok path 0.009s
ok path/filepath 0.848s
ok reflect 0.047s
ok regexp 0.108s
ok regexp/syntax 0.455s
ok runtime 6.370s
? runtime/cgo [no test files]
ok runtime/debug 0.018s
ok runtime/pprof 0.340s
ok sort 0.056s
ok strconv 0.294s
ok strings 0.105s
ok sync 0.073s
ok sync/atomic 0.021s
ok syscall 0.041s
? testing [no test files]
? testing/iotest [no test files]
ok testing/quick 0.021s
ok text/scanner 0.020s
ok text/tabwriter 0.009s
ok text/template 0.247s
ok text/template/parse 0.014s
ok time 5.225s
ok unicode 0.018s
ok unicode/utf16 0.013s
ok unicode/utf8 0.049s
? unsafe [no test files]

--

---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedMar 6, '13 at 9:53p
activeMar 6, '13 at 9:53p
posts1
users1
websitegolang.org

1 user in discussion

Builder: 1 post

People

Translate

site design / logo © 2021 Grokbase