From: K. G. <kim...@gm...> - 2008-09-10 14:43:02
|
Hi Allister, On Wed, Sep 10, 2008 at 09:07, Allister Levi Sanchez <all...@gm...> wrote: > Something like this in > http_test_server.py: > all_headers = ',--aUniqueSeparator--,'.join(self.headers) > os.environ['HTTP_ALL_HEADERS'] = all_headers > and in the CGI script, we can easily recover it: > list_of_all_headers = > os.environ.get('HTTP_ALL_HEADERS','').split(',--aUniqueSeparator--,') > There you have it. I'll commit it after work -- or you could commit it > yourself ;-) It wasn't quite as easy, but almost. I've committed a version that forwards all headers, newline-separated, as a string in HTTP_ALL_HEADERS. Not sure if it was a good idea, but I replaced all your named header handling with this simple, raw, forwarding. Maybe we should have both? Not sure if it makes sense, though. All tests seem to run anyway, at least on Windows. Thanks, - Kim |