The required changes are more complicated than that and part of the
reason hadn't tried to implement it at this point.
You also need to look for whether data was provided via the write()
callback returned by start_response(). You also have to consider
wsgi.file_wrapper.
The change can't be enacted at that point either without a check to
ensure you are only doing it in embedded mode. IOW, you cant do that
in a daemon mode process, which is already handled in a different way.
I can't remember if there were other reasons I had held off doing
this, but overall I felt it was probably doable, it just hadn't been
high priority.
Graham