]> Cypherpunks repositories - gostls13.git/commit
net/http: use WriteString directly when possible
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 May 2013 02:26:26 +0000 (19:26 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 May 2013 02:26:26 +0000 (19:26 -0700)
commitc6c439d7a0be6bfb91348d8a76b09ffd173688fa
tree7e0f59033650e9e47c4b710f730a9efcab7225b6
parentfc3bec386e85b18152b9893ab6379a33a1706380
net/http: use WriteString directly when possible

Several places used io.WriteString unnecessarily when the
static type already implemented WriteString. No need to
check for it at runtime.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9608043
src/pkg/net/http/server.go