Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: Request.ParseForm documentation not correct. #8067

Closed
gopherbot opened this issue May 21, 2014 · 3 comments
Closed

net/http: Request.ParseForm documentation not correct. #8067

gopherbot opened this issue May 21, 2014 · 3 comments

Comments

@gopherbot
Copy link

by roberts@google.com:

The documentation for this method is not quite correct.

func (r *Request) FormValue(key string) string
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. To access multiple values of the same key
use ParseForm.



To access multiple values of the same key, you need to use Request's Form or PostForm
field, not call ParseForm to get the additional values.

Example Code:

http://play.golang.org/p/th6LOVj5i3
@ianlancetaylor
Copy link
Contributor

Comment 1:

Labels changed: added repo-main, release-none, documentation.

@gopherbot
Copy link
Author

Comment 2:

CL https://golang.org/cl/146480043 mentions this issue.

@bradfitz
Copy link
Contributor

Comment 3:

This issue was closed by revision 705c1f5.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants