Skip to content
Snippets Groups Projects
Unverified Commit 251c70a9 authored by Nedyalko Andreev's avatar Nedyalko Andreev
Browse files

Fix body parsing with longer form content-type headers

parent 273b70dc
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 ...@@ -107,7 +107,7 @@ func parseBody(w http.ResponseWriter, r *http.Request, resp *bodyResponse) error
ct := r.Header.Get("Content-Type") ct := r.Header.Get("Content-Type")
switch { switch {
case ct == "application/x-www-form-urlencoded": case strings.HasPrefix(ct, "application/x-www-form-urlencoded"):
if err := r.ParseForm(); err != nil { if err := r.ParseForm(); err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment