Skip to content

http: http.Request ParseForm does not parse form data for PUT requests #2165

@gopherbot

Description

@gopherbot

by dgrijalva@ngmoco.com:

What steps will reproduce the problem?
1. create an http.Request instance for a PUT request with an
application/x-www-form-urlencoded body
2. call r.ParseForm
3. try to use r.Form

What is the expected output?
r.Form should contain the data from the form in the body of the request

What do you see instead?
it doesn't


Which compiler are you using (5g, 6g, 8g, gccgo)?
6g


Which operating system are you using?
osx


Which revision are you using?  (hg identify)
d5785050f61d+ (release-branch.r59) release/release.r59



Please provide any additional information below.

Patch to follow

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions