commit | 2062a20641febad5eb9c18d74e1cfb4d7a6e53ed | [log] [tgz] |
---|---|---|
author | Michael Felt <aixtools@users.noreply.github.com> | Wed Dec 26 06:43:42 2018 +0100 |
committer | Nick Coghlan <ncoghlan@gmail.com> | Wed Dec 26 15:43:42 2018 +1000 |
tree | e1da7d77317cc4428315cacf26ed30a1f64d6d3f | |
parent | 22462da70c1ae015a60a7b821547bc6d2b5bc265 [diff] |
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.