Skip to content

Commit 38d21de

Browse files
authored
update xet reconstruction API call to use v1 prefix (#1648)
Update the reconstruction api path to use the `/v1` prefix (the old path is maintained by the server for backwards compatibility clients should use the updated path when possible).
1 parent 2a2c912 commit 38d21de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hub/src/utils/XetBlob.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ export class XetBlob extends Blob {
158158
const connParams = await getAccessToken(this.accessToken, this.fetch, this.refreshUrl);
159159

160160
// debug(
161-
// `curl '${connParams.casUrl}/reconstruction/${this.hash}' -H 'Authorization: Bearer ${connParams.accessToken}'`
161+
// `curl '${connParams.casUrl}/v1/reconstruction/${this.hash}' -H 'Authorization: Bearer ${connParams.accessToken}'`
162162
// );
163163

164-
const resp = await this.fetch(this.reconstructionUrl ?? `${connParams.casUrl}/reconstruction/${this.hash}`, {
164+
const resp = await this.fetch(this.reconstructionUrl ?? `${connParams.casUrl}/v1/reconstruction/${this.hash}`, {
165165
headers: {
166166
Authorization: `Bearer ${connParams.accessToken}`,
167167
Range: `bytes=${this.start}-${this.end - 1}`,

0 commit comments

Comments
 (0)