Skip to content

Commit d0c21e2

Browse files
committed
🐛 filename is encoded by encodeURIComponent, not encodeTitleURI
1 parent 75129a5 commit d0c21e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const getTable_toRequest: GetTable["toRequest"] = (
1717
const { sid, hostName } = setDefaults(options ?? {});
1818
const path = `https://${hostName}/api/pages/${project}/${
1919
encodeTitleURI(title)
20-
}/${encodeTitleURI(filename)}.csv`;
20+
}/${encodeURIComponent(filename)}.csv`;
2121

2222
return new Request(
2323
path,

0 commit comments

Comments
 (0)