jetti777Ltd / mochiweb

Automatically exported from code.google.com/p/mochiweb
Other
0 stars 0 forks source link

Ajax Post with Mime-Type & Charset returning empty Params #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using Prototype.js library make an ajax Post with parameters.
2. Use Req:parse_post() to get the Params

What is the expected output? What do you see instead?
[{"user[login]", "test"}] => got this []

The charset is tacked on to the end of the content-type so it doesn't match 
when trying to parse the 
mime-type. Expected "application/x-www-form-urlencoded", actual 
"application/x-www-form-
urlencoded;charset=utf8"

Original issue reported on code.google.com by matthew....@gmail.com on 26 Feb 2008 at 7:46

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by bob.ippo...@gmail.com on 26 Feb 2008 at 8:33