summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2014-09-29 13:42:33 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2014-09-29 13:42:33 -0700
commitc9dd39b8f116907ee759931e9df208071786ddf2 (patch)
tree6dc02ffff91aa2d8c1cbc90e298357322b628b36 /src/net
parentdea3a21cdfff271f812604099bbf1560f51e415b (diff)
downloadgo-c9dd39b8f116907ee759931e9df208071786ddf2.tar.gz
net/http: clarify Request.FormValue docs
Fixes Issue 8067 LGTM=r R=r CC=golang-codereviews https://codereview.appspot.com/146480043
Diffstat (limited to 'src/net')
-rw-r--r--src/net/http/request.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/http/request.go b/src/net/http/request.go
index 263c26c9b..487eebcb8 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)