API refinements

This commit is contained in:
Zef Hemel
2023-08-15 20:15:27 +02:00
parent 5cf97272c1
commit 7cce83b240
4 changed files with 21 additions and 7 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ export class HttpSpacePrimitives implements SpacePrimitives {
: +res.headers.get("Content-Length")!,
contentType: res.headers.get("Content-type")!,
lastModified: +(res.headers.get("X-Last-Modified") || "0"),
perm: (res.headers.get("X-Permission") as "rw" | "ro") || "rw",
perm: (res.headers.get("X-Permission") as "rw" | "ro") || "ro",
};
}