mirror of
https://github.com/9001/copyparty.git
synced 2025-10-04 10:19:21 +02:00
add webdav write support + fix http 200/201
This commit is contained in:
parent
81d896be9f
commit
20eeacaac3
13 changed files with 418 additions and 43 deletions
|
@ -144,11 +144,11 @@ def tc1(vflags):
|
|||
files={"f": (d.replace("/", "") + ".h264", vid)},
|
||||
)
|
||||
c = r.status_code
|
||||
if c == 200 and p not in ["w", "rw"]:
|
||||
if c == 201 and p not in ["w", "rw"]:
|
||||
raise Exception("post {} with perm {} at {}".format(c, p, d))
|
||||
elif c == 403 and p not in ["r"]:
|
||||
raise Exception("post {} with perm {} at {}".format(c, p, d))
|
||||
elif c not in [200, 403]:
|
||||
elif c not in [201, 403]:
|
||||
raise Exception("post {} with perm {} at {}".format(c, p, d))
|
||||
|
||||
cpp.clean()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue