From 09797676643203c3f0aa2fd6f26b040daceac0b7 Mon Sep 17 00:00:00 2001 From: dchenk Date: Tue, 22 May 2018 20:32:51 -0700 Subject: [PATCH] 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 --- src/net/http/request.go | 4 ++-- 1 file 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. -- 2.48.1