From: Brad Fitzpatrick Date: Mon, 29 Sep 2014 20:42:33 +0000 (-0700) Subject: net/http: clarify Request.FormValue docs X-Git-Tag: go1.4beta1~252 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=705c1f5cd45d572ba32dea48f5fe997a9f970400;p=gostls13.git net/http: clarify Request.FormValue docs Fixes #8067 LGTM=r R=r CC=golang-codereviews https://golang.org/cl/146480043 --- diff --git a/src/net/http/request.go b/src/net/http/request.go index 263c26c9bd..487eebcb84 100644 --- a/src/net/http/request.go +++ b/src/net/http/request.go @@ -852,7 +852,8 @@ func (r *Request) ParseMultipartForm(maxMemory int64) error { // POST and PUT body parameters take precedence over URL query string values. // FormValue calls ParseMultipartForm and ParseForm if necessary and ignores // any errors returned by these functions. -// To access multiple values of the same key use ParseForm. +// To access multiple values of the same key, call ParseForm and +// then inspect Request.Form directly. func (r *Request) FormValue(key string) string { if r.Form == nil { r.ParseMultipartForm(defaultMaxMemory)