]> Cypherpunks repositories - gostls13.git/commit
net/http: Add missing tests for parsePostForm
authorQuentin Renard <contact@asticode.com>
Thu, 6 Oct 2016 20:47:53 +0000 (22:47 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 9 Oct 2016 20:42:22 +0000 (20:42 +0000)
commit5f1a013ea7e755e963518cc6c17a17a270041864
tree9f9126bf1bbef39ce02d5590e95c0950fe914f8a
parentf13372c9f7df12bfa4fbba5d9802f17fd186a0bc
net/http: Add missing tests for parsePostForm

Renamed TestPOSTQuery to TestParseFormQuery and added testing
for the ";" delimiter, an empty key, an empty value and an
empty key + value.

Also added TestParseFormQueryMethods to make sure forms sent in
PATCH and PUT (and no others) request  are parsed correctly in
ParseForm.

Fixes #17368

Change-Id: I445aad324ffc7b38d179ea41953bffbac0cddffe
Reviewed-on: https://go-review.googlesource.com/30555
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_test.go