Reviewers:
golang-dev_googlegroups.com,
Message:
Hello
golan...@googlegroups.com (cc:
golan...@googlegroups.com),
I'd like you to review this change to
https://code.google.com/p/go
Description:
net/http: mention ParseForm and Form in docs for (*Request).FormValue
Please review this at
http://codereview.appspot.com/6847074/
Affected files:
M src/pkg/net/http/request.go
Index: src/pkg/net/http/request.go
===================================================================
--- a/src/pkg/net/http/request.go
+++ b/src/pkg/net/http/request.go
@@ -728,6 +728,8 @@
// FormValue returns the first value for the named component of the query.
// POST and PUT body parameters take precedence over URL query string
values.
// FormValue calls ParseMultipartForm and ParseForm if necessary.
+// If you want multiple values of the same key, invoke r.ParseForm() and
+// use r.Form directly.
func (r *Request) FormValue(key string) string {
if r.Form == nil {
r.ParseMultipartForm(defaultMaxMemory)