[Web-SIG] wsgiref.validate allows wsgi.input.read() with no argument
Ian Bicking
ianb at colorstudy.com
Sun Dec 14 01:08:10 CET 2008
Graham Dumpleton wrote:
>> An application that relies on the server to simulate end-of-file will be a
>> broken application on some servers. This is not an uncommon problem.
>> Therefore the validator tests for this case; if you want an application
>> that actually works consistently, you shouldn't do
>> environ['wsgi.input'].read().
>
> The validator does not test for that case, that is what I am pointing
> out. The validator allows read() to be called with no argument.
Ah, sorry, I wasn't paying attention... okay, then yes, I agree -- the
validator should be more restrictive.
--
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org
More information about the Web-SIG
mailing list