bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a directory (GH-9687)
AIX allows a trailing slash on local file system paths, which isn't what we want in http.server. Accordingly, check explicitly for this case in the server code, rather than relying on the OS raising an exception. Patch by Michael Felt.
M
Michael Felt committed
2062a20641febad5eb9c18d74e1cfb4d7a6e53ed
Parent: 22462da
Committed by Nick Coghlan <ncoghlan@gmail.com>
on 12/26/2018, 5:43:42 AM