]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/web/filenode.py
webish: add an extra newline to JSON output
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / web / filenode.py
index 664b53c1488920a61989e96af302ff90496bbc55..f2d9ce254b7ded86a914c4b8df24662f4a912a92 100644 (file)
@@ -398,7 +398,7 @@ def FileJSONMetadata(ctx, filenode):
     if rw_uri:
         data[1]['rw_uri'] = rw_uri
     data[1]['mutable'] = filenode.is_mutable()
-    return text_plain(simplejson.dumps(data, indent=1), ctx)
+    return text_plain(simplejson.dumps(data, indent=1) + "\n", ctx)
 
 def FileURI(ctx, filenode):
     return text_plain(filenode.get_uri(), ctx)