ClosestStorm / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

POST vars parting of Contetn Type may have a flaw #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. POST with a content type of application/x-form-urlencoded; Charset: UTF8
2.
3.

What is the expected output? What do you see instead?
 Any post data is not put into request.post

What version of the product are you using? On what operating system?

Please provide any additional information below.

 Not sure is the above Content scheme is permissible but I am guessing it
is. My hack t fix was to change the content type check in _parsePOST  to do
indexOf("application/x-form-urlencoded") == 0, rather than the current ==.
Again, not sure if the type that is being sent by the Poster Firefox
addinis correct (That is what was exhibiting the problem)so this may be bogus.

 thanks for writing this wrapper, great to be able to code in js on the server.

Original issue reported on code.google.com by jonespo...@yahoo.com on 17 Dec 2008 at 3:48

GoogleCodeExporter commented 9 years ago
Hi,

thanks for pointing this out. Your content-type seems to be ok (checked with 
HTTP
header field definitions), so I will fix this as suggested.

Original comment by ondrej.zara on 6 Jan 2009 at 11:44

GoogleCodeExporter commented 9 years ago
Solved in revision 192.

Original comment by ondrej.zara on 6 Jan 2009 at 11:49