]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/scripts/tahoe_put.py
webapi: handle format=, remove mutable-type=
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / scripts / tahoe_put.py
index a92cfc53e9cef047edf23f7093ee14b93b015bf1..3a3b39458e679ce1da010dcb7ff9d7eab6d9f90f 100644 (file)
@@ -63,11 +63,15 @@ def put(options):
     else:
         # unlinked upload
         url = nodeurl + "uri"
+
+    file_format = None
     if mutable:
-        url += "?mutable=true"
+        file_format = "SDMF"
     if mutable_type:
         assert mutable
-        url += "&mutable-type=%s" % mutable_type
+        file_format = mutable_type.upper()
+    if file_format:
+        url += "?format=%s" % file_format
 
     if from_file:
         infileobj = open(os.path.expanduser(from_file), "rb")