Commit 09797676 authored by dchenk's avatar dchenk Committed by Brad Fitzpatrick

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/114009Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent ef993816
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment