[issue10751] REMOTE_USER and Remote-User collision in wsgiref

Phillip J. Eby report at bugs.python.org
Tue Jan 4 23:53:18 CET 2011


Phillip J. Eby <pje at telecommunity.com> added the comment:

You say it "would" do this.  Have you actually *tested* it?

Looking at the code in wsgiref again, I don't think it does what you think it does.  The '_' substitution is done to keyword arguments for header *parameters* only; it's not done to header *names*.

Please write a test case for wsgiref.headers.Headers that demonstrates the behavior you think it would be doing.  AFAICT, you will not even be able to get the replace() calls to execute without writing explicit add_header() calls, and even then, you *still* won't get the results you're describing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10751>
_______________________________________


More information about the Python-bugs-list mailing list