seanjensengrey / cogen

Automatically exported from code.google.com/p/cogen
MIT License
0 stars 0 forks source link

POST data won't work properly with the current cogen #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
thanks for the quick tip. i've released a new egg

Original comment by ionel...@gmail.com on 12 Dec 2007 at 7:05