From: dchenk Date: Wed, 23 May 2018 03:32:51 +0000 (-0700) Subject: net/http: fix doc comment on PostFormValue function X-Git-Tag: go1.11beta1~336 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=09797676643203c3f0aa2fd6f26b040daceac0b7;p=gostls13.git 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 --- 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.