summaryrefslogtreecommitdiff
path: root/Python/ast_unparse.c
diff options
context:
space:
mode:
authorMichael Felt <aixtools@users.noreply.github.com>2018-12-26 06:43:42 +0100
committerNick Coghlan <ncoghlan@gmail.com>2018-12-26 15:43:42 +1000
commit2062a20641febad5eb9c18d74e1cfb4d7a6e53ed (patch)
treee1da7d77317cc4428315cacf26ed30a1f64d6d3f /Python/ast_unparse.c
parent22462da70c1ae015a60a7b821547bc6d2b5bc265 (diff)
downloadcpython-git-2062a20641febad5eb9c18d74e1cfb4d7a6e53ed.tar.gz
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.
Diffstat (limited to 'Python/ast_unparse.c')
0 files changed, 0 insertions, 0 deletions