]> Cypherpunks repositories - gostls13.git/commit
mime: style, perf, and test updates to case-insensitive lookups
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Aug 2014 18:07:46 +0000 (11:07 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Aug 2014 18:07:46 +0000 (11:07 -0700)
commitb155e79f23d66d70f761d73cb7478c5fb59c915c
treeb482be7078dbbf4bdc1bc4289e9f7d53dbe7c9f9
parent558bd8e1d90e474c97115dd9d9cd089d19a3650f
mime: style, perf, and test updates to case-insensitive lookups

Only grab the lock once, don't allocate, add more tests.

LGTM=ruiu
R=ruiu, josharian
CC=golang-codereviews
https://golang.org/cl/139780043
src/pkg/mime/type.go
src/pkg/mime/type_test.go