I was having trouble getting POST data to work properly with cogen's WSGI
server, which was
making it impossible to get my application running under cogen's WSGI server
via Paste. I found
the issue and fixed it with the following change to wsgi.py:
-------------------------------------------------------------------
387c387
< if not environ.get("wsgi.input", None) and
environ["CONTENT_LENGTH"]:
---
> if environ["CONTENT_LENGTH"]:
389c389
< environ["wsgi.input"] = StringIO(postdata)
---
> environ["wsgi.input"] = StringIO.StringIO(postdata)
-------------------------------------------------------------------
The egg configuration is also incorrect, causing the "core" and "web" packages
not being included
in the egg. I haven't produced a patch for this yet.
Original issue reported on code.google.com by j.lac...@gmail.com on 11 Dec 2007 at 7:15
Original issue reported on code.google.com by
j.lac...@gmail.com
on 11 Dec 2007 at 7:15