mirror of
https://github.com/9001/copyparty.git
synced 2026-03-27 10:33:11 +10:00
v1.6.0
This commit is contained in:
@@ -1204,15 +1204,7 @@ class HttpCli(object):
|
||||
if "raw" in self.uparam:
|
||||
return self.handle_stash(False)
|
||||
|
||||
if "delete" in self.uparam:
|
||||
return self.handle_rm([])
|
||||
|
||||
if "move" in self.uparam:
|
||||
return self.handle_mv()
|
||||
|
||||
ctype = self.headers.get("content-type", "").lower()
|
||||
if not ctype:
|
||||
raise Pebkac(400, "you can't post without a content-type header")
|
||||
|
||||
if "multipart/form-data" in ctype:
|
||||
return self.handle_post_multipart()
|
||||
@@ -1224,6 +1216,12 @@ class HttpCli(object):
|
||||
):
|
||||
return self.handle_post_json()
|
||||
|
||||
if "move" in self.uparam:
|
||||
return self.handle_mv()
|
||||
|
||||
if "delete" in self.uparam:
|
||||
return self.handle_rm([])
|
||||
|
||||
if "application/octet-stream" in ctype:
|
||||
return self.handle_post_binary()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user