npmccallum/kdcproxy — pull request #7 by nalind (2014-02-07 23:28:05+00:00)
Title: Work around read() not finishing under paste

When run from mod_wsgi, env["wsgi.input"].read()'s default behavior of
reading until the end of the data is reached pulls in the rest of the
client's request. Under paste with SSL, it blocks. So if the client
sent a Content-Length header, stop after reading just that many bytes.