Re: [issue2551047] REST-API not working with wsgi
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ralf: In message <[email protected]>, Ralf Schlatterbeck writes: >Thanks, John, for the quick reply. >So my idea of fixing this looks right. > >On Wed, Jun 19, 2019 at 09:46:45PM +0000, John Rouillard wrote: >> Are you planning on doing something like: >> >> class HttpHeaders: >[...] > >Yes, similar. I've not copied the dict but pass the environ into >the constructor and mangle incoming names on lookup. Gotcha. >I'm not entirely sure if we only need to support get / getheader >or if all the other dictionary methods should also be supported. >At least rest.py only uses get. Might as well just go with these two dictionary methods for now. We can add more as needed. >I've just pushed the change, it now works for me. Cool. Any thought's on how we add tests for these? All the front ends need testing and I am at a loss as to how to actually test them. We could try installing seomthing like: https://docs.pylonsproject.org/projects/webtest/en/latest/webtest.html and I think that could work with cgi, roundup-server, wsgi but I would prefer something that works without having to install a new library. -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions.