Author pje
Recipients Alex.Raitz, pje
Date 2011-01-04.22:53:09
SpamBayes Score 1.76955e-08
Marked as misclassified No
Message-id <1294181598.72.0.0844770953545.issue10751@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-01-04 22:53:18pjesetrecipients: + pje, Alex.Raitz
2011-01-04 22:53:18pjesetmessageid: <1294181598.72.0.0844770953545.issue10751@psf.upfronthosting.co.za>
2011-01-04 22:53:09pjelinkissue10751 messages
2011-01-04 22:53:09pjecreate