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:
parent
9f0611cd20
commit
f4a9399a97
3 changed files with 6 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue