We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5549274 commit e1cca3aCopy full SHA for e1cca3a
packages/hub/src/utils/xetWriteToken.ts
@@ -47,8 +47,9 @@ export async function xetWriteToken(params: XetWriteTokenParams): Promise<{ acce
47
48
const promise = (async () => {
49
const resp = await (params.fetch ?? fetch)(
50
- `${params.hubUrl}/api/${params.repo.type}s/${params.repo.name}/xet-write-token/${params.rev}` +
51
- (params.isPullRequest ? "?create_pr=1" : ""),
+ `${params.hubUrl}/api/${params.repo.type}s/${params.repo.name}/xet-write-token/${encodeURIComponent(
+ params.rev
52
+ )}` + (params.isPullRequest ? "?create_pr=1" : ""),
53
{
54
headers: params.accessToken
55
? {
0 commit comments