pumazi/wsgi_intercept2 — Issue #27: WSGI application response body must be of type 'bytes'
Author: pumazi
Created: 2012-01-11 00:53:54+00:00
State: open
Labels: defect

According to PEP3333 (the Python 3 version of PEP333), the body of a WSGI application must be in bytes (e.g. b""). Therefore, the fake socket implementation (wsgi_fake_socket) as well as the environment maker (make_environ) must be changed to handle bytes rather than strings (str).