You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the _post function, your comment says "Remove non-ASCII characters from filenames due to a limitation of the combination of urllib3 (via python-requests) and our server." Instead of dropping all non-ASCII characters to work around web server header encoding support, you should encode the filename using urllib.parse.quote and then decode the filename on the server-side if necessary.
The text was updated successfully, but these errors were encountered:
I don't think it would be incompatible - you're not forced to encode if your filename is already in ASCII, though it would require a change on the server side code to support decoding the output. But it's great that urllib merged that change. Let's see how long it takes to make it to mainstream Python.
In the
_post
function, your comment says "Remove non-ASCII characters from filenames due to a limitation of the combination of urllib3 (via python-requests) and our server." Instead of dropping all non-ASCII characters to work around web server header encoding support, you should encode the filename usingurllib.parse.quote
and then decode the filename on the server-side if necessary.The text was updated successfully, but these errors were encountered: