summaryrefslogtreecommitdiffstats
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorMichael Felt <aixtools@users.noreply.github.com>2018-12-26 05:43:42 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2018-12-26 05:43:42 (GMT)
commit2062a20641febad5eb9c18d74e1cfb4d7a6e53ed (patch)
treee1da7d77317cc4428315cacf26ed30a1f64d6d3f /Python/strdup.c
parent22462da70c1ae015a60a7b821547bc6d2b5bc265 (diff)
downloadcpython-2062a20641febad5eb9c18d74e1cfb4d7a6e53ed.zip
cpython-2062a20641febad5eb9c18d74e1cfb4d7a6e53ed.tar.gz
cpython-2062a20641febad5eb9c18d74e1cfb4d7a6e53ed.tar.bz2
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/strdup.c')
0 files changed, 0 insertions, 0 deletions