Export to GitHub

cogen - issue #1

POST data won't work properly with the current cogen


Posted on Dec 11, 2007 by Quick Giraffe

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.

Comment #1

Posted on Dec 12, 2007 by Happy Dog

thanks for the quick tip. i've released a new egg

Status: Fixed

Labels:
Type-Defect Priority-Medium