1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Change HTTP response 303 to 302

This commit is contained in:
Unrud 2017-07-01 04:20:13 +02:00
parent 9f0611cd20
commit f4a9399a97
3 changed files with 6 additions and 6 deletions

View file

@ -104,7 +104,7 @@ class Web(BaseWeb):
return NOT_FOUND
if os.path.isdir(filesystem_path) and not path.endswith("/"):
location = posixpath.basename(path) + "/"
return (client.SEE_OTHER,
return (client.FOUND,
{"Location": location, "Content-Type": "text/plain"},
"Redirected to %s" % location)
if os.path.isdir(filesystem_path):