Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit 800623e

Browse files
committed
fix(filesystem): repair upload file
1 parent 8a52a5e commit 800623e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.8",
2+
"version": "0.1.9",
33
"license": "Apache-2.0",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/filesystem.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class Filesystem {
4848
headers.append('Content-Type', 'multipart/form-data');
4949

5050
await fetch(`${this.clientCaller.endpoint}/fs/write`, {
51+
method: 'POST',
5152
body: formData,
5253
headers,
5354
});

src/initd.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export class Initd {
1010
public fs: Filesystem;
1111

1212
constructor(apiToken: string, machineID: string) {
13-
this.caller = new ClientCaller(apiToken, `${machineID}-initd.valyent.dev`);
13+
this.caller = new ClientCaller(
14+
apiToken,
15+
`https://${machineID}-initd.valyent.dev`
16+
);
1417
this.fs = new Filesystem(this.caller);
1518
}
1619

0 commit comments

Comments
 (0)