If I understand the WSGI specification (PEP 3333) the file wrapper callable should return an iterable object - see https://peps.python.org/pep-3333/#optional-platform-specific-file-handling . I see GUnicorn can handle file wrapper another way (respiter discrimination), but when trying to use a WSGI app that depends on the iterable interface, the app breaks. Can we please add __iter__() to FileWrapper and fix this?
If I understand the WSGI specification (PEP 3333) the file wrapper callable should return an iterable object - see https://peps.python.org/pep-3333/#optional-platform-specific-file-handling . I see GUnicorn can handle file wrapper another way (respiter discrimination), but when trying to use a WSGI app that depends on the iterable interface, the app breaks. Can we please add __iter__() to FileWrapper and fix this?