mirror of https://github.com/python/cpython
e38bebb9ee
bpo-37222: Fix for CacheFTPHandler in urllib A call to FTP.ntransfercmd must be followed by FTP.voidresp to clear the "end transfer" message. Without this, the client and server get out of sync, which will result in an error if the FTP instance is reused to open a second URL. This scenario occurs for even the most basic usage of CacheFTPHandler. Reverts the patch merged as a resolution to bpo-16270 and adds a test case for the CacheFTPHandler in test_urllib2net.py. Co-authored-by: Senthil Kumaran <senthil@python.org> |
||
---|---|---|
.. | ||
__init__.py | ||
error.py | ||
parse.py | ||
request.py | ||
response.py | ||
robotparser.py |