]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: fix doc comment on PostFormValue function
authordchenk <dcherchenko@gmail.com>
Wed, 23 May 2018 03:32:51 +0000 (20:32 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 23 May 2018 16:55:51 +0000 (16:55 +0000)
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>
src/net/http/request.go

index 194b867c8c419e67c48a8a20faa791ca11162d19..119a015a53d1dc3756288bf2538baa4644fd6b76 100644 (file)
@@ -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.