Commits

Anonymous committed db76edb Draft

net/http: change a Del to delete

No need to fix case of "Host" string literal.

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/6278049

Comments (0)

Files changed (1)

src/pkg/net/http/request.go

 	if req.Host == "" {
 		req.Host = req.Header.get("Host")
 	}
-	req.Header.Del("Host")
+	delete(req.Header, "Host")
 
 	fixPragmaCacheControl(req.Header)