Skip to content

Commit 0979767

Browse files
dchenkbradfitz
authored andcommitted
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 <[email protected]>
1 parent ef99381 commit 0979767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/http/request.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1254,8 +1254,8 @@ func (r *Request) FormValue(key string) string {
12541254
return ""
12551255
}
12561256

1257-
// PostFormValue returns the first value for the named component of the POST
1258-
// or PUT request body. URL query parameters are ignored.
1257+
// PostFormValue returns the first value for the named component of the POST,
1258+
// PATCH, or PUT request body. URL query parameters are ignored.
12591259
// PostFormValue calls ParseMultipartForm and ParseForm if necessary and ignores
12601260
// any errors returned by these functions.
12611261
// If key is not present, PostFormValue returns the empty string.

0 commit comments

Comments
 (0)