1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

add base64 as format for read results

This commit is contained in:
Falk Werner
2019-02-10 22:18:22 +01:00
parent 53ed822457
commit 2b7d938315
3 changed files with 11 additions and 5 deletions

View File

@@ -117,8 +117,8 @@ class FileSystem {
let end = Math.min(offset + length, entry.contents.length);
let data = (offset < entry.contents.length) ? entry.contents.substring(offset, end) : "";
result = {
data: data,
format: "identity",
data: btoa(data),
format: "base64",
count: data.length
};
}