aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/request.go
diff options
context:
space:
mode:
authordchenk <dcherchenko@gmail.com>2018-05-22 20:32:51 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2018-05-23 16:55:51 +0000
commit09797676643203c3f0aa2fd6f26b040daceac0b7 (patch)
treeab1f5b7d19a592600d9d3262e4f9b83d4b6b7b93 /src/net/http/request.go
parentef99381676fb008d418720a1169184cea21f4bb6 (diff)
downloadgo-09797676643203c3f0aa2fd6f26b040daceac0b7.tar.gz
go-09797676643203c3f0aa2fd6f26b040daceac0b7.zip
net/http: fix doc comment on PostFormValue function
This function checks Request.PostForm, which now includes values parsed from a PATCH request. Change-Id: I5d0af58d9c0e9111d4e822c45f0fb1f511bbf0d5 Reviewed-on: https://go-review.googlesource.com/114009 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net/http/request.go')
-rw-r--r--src/net/http/request.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/request.go b/src/net/http/request.go
index 194b867c8c..119a015a53 100644
--- a/src/net/http/request.go
+++ b/src/net/http/request.go
@@ -1254,8 +1254,8 @@ func (r *Request) FormValue(key string) string {
return ""
}
-// PostFormValue returns the first value for the named component of the POST
-// or PUT request body. URL query parameters are ignored.
+// PostFormValue returns the first value for the named component of the POST,
+// PATCH, or PUT request body. URL query parameters are ignored.
// PostFormValue calls ParseMultipartForm and ParseForm if necessary and ignores
// any errors returned by these functions.
// If key is not present, PostFormValue returns the empty string.