-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed as not planned
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposal
Milestone
Description
Proposal Details
It would help to simplify code if we follow:
func (r *Request) ParseForm() (err error) {
if r.PostForm == nil {
switch r.Method {
case "POST", "PUT", "PATCH": r.PostForm, err = parsePostForm(r)
}
if r.PostForm == nil {
r.PostForm = make(url.Values)
}
}
if r.Form == nil {r.Form = make(url.Values)}
if len(r.PostForm) > 0 {copyValues(r.Form, r.PostForm)}
if r.URL != nil {
form, e := url.ParseQuery(r.URL.RawQuery)
if err == nil {err = e}
copyValues(r.Form, form)
}
return err
}
Metadata
Metadata
Assignees
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposal