]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: clarify Request.FormValue docs
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 29 Sep 2014 20:42:33 +0000 (13:42 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 29 Sep 2014 20:42:33 +0000 (13:42 -0700)
Fixes #8067

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/146480043

src/net/http/request.go

index 263c26c9bdd8343310d6c5a11e9ab71ef3a6a835..487eebcb841beff999f0998942f3ff7a13c4e9ad 100644 (file)
@@ -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)