Skip to content
Snippets Groups Projects
Unverified Commit 8e86068c authored by Will McCutchen's avatar Will McCutchen Committed by GitHub
Browse files

Merge pull request #2 from na--/fix-form-data

Fix body parsing with longer form content-type headers
parents 273b70dc 251c70a9
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ func parseBody(w http.ResponseWriter, r *http.Request, resp *bodyResponse) error
ct := r.Header.Get("Content-Type")
switch {
case ct == "application/x-www-form-urlencoded":
case strings.HasPrefix(ct, "application/x-www-form-urlencoded"):
if err := r.ParseForm(); err != nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment