Closed daggaz closed 2 years ago
The changes in PR test the input "file" to see if it returns bytes or str and wraps any byte-file in an io.TextIOWrapper. The encoding is used by the TextIOWrapper is guessed from:
bytes
str
io.TextIOWrapper
TextIOWrapper
Content-Type
The changes in PR test the input "file" to see if it returns
bytes
orstr
and wraps any byte-file in anio.TextIOWrapper
. The encoding is used by theTextIOWrapper
is guessed from:Content-Type
header encoding