Skip to content

Commit

Permalink
net/http: clarify Request.FormValue docs
Browse files Browse the repository at this point in the history
Fixes #8067

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/146480043
  • Loading branch information
bradfitz committed Sep 29, 2014
1 parent fe2bc11 commit 705c1f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/net/http/request.go
Expand Up @@ -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)
Expand Down

0 comments on commit 705c1f5

Please sign in to comment.