]> Cypherpunks repositories - gostls13.git/commit
net/http: make ParseMultipartForm also populate Request.PostForm
authorEmmanuel Odeke <emm.odeke@gmail.com>
Sat, 27 Feb 2016 10:14:06 +0000 (03:14 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 12 Mar 2016 19:01:47 +0000 (19:01 +0000)
commit2a7c446f987494228dc96d96272737568e01cddc
tree1402bd828d58a12e202677e85b03f6331d6bda91
parent40bfec0022c027545f8b3e68050e7778dec7f7ce
net/http: make ParseMultipartForm also populate Request.PostForm

Ensures that after request.ParseMultipartForm has been invoked,
Request.PostForm and Request.Form are both populated with the
same formValues read in, instead of only populating Request.Form.

Fixes #9305

Change-Id: I3d4a11b006fc7dffaa35360014fe15b8c74d00a3
Reviewed-on: https://go-review.googlesource.com/19986
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/request.go
src/net/http/request_test.go