You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whereas, the docs for PostFormValue() say, that it calls ParseMultipartForm():
PostFormValue returns the first value for the named component of the POST or PUT request body.
URL query parameters are ignored. PostFormValue calls ParseMultipartForm and ParseForm if
necessary and ignores any errors returned by these functions.
But PostForm remains empty, and PostFormValue() returns an empty string. I think that's illogical. I'd expect it to add form fields values to the request's PostForm. It is a POST request, after all.
The text was updated successfully, but these errors were encountered:
Currently
ParseMultipartForm()
appends values to the request'sForm
only: http://play.golang.org/p/OHN6v9z7-PWhereas, the docs for
PostFormValue()
say, that it callsParseMultipartForm()
:But
PostForm
remains empty, andPostFormValue()
returns an empty string. I think that's illogical. I'd expect it to add form fields values to the request'sPostForm
. It is a POST request, after all.The text was updated successfully, but these errors were encountered: