Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fb46f4

Browse files
mtojekstirby
authored andcommitted
fix: use correct Content-Type for template archive (#15410)
Fixes: #14124 (cherry picked from commit 1736309)
1 parent 3f8ba73 commit 2fb46f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ class ApiMethods {
18681868

18691869
uploadFile = async (file: File): Promise<TypesGen.UploadResponse> => {
18701870
const response = await this.axios.post("/api/v2/files", file, {
1871-
headers: { "Content-Type": "application/x-tar" },
1871+
headers: { "Content-Type": file.type },
18721872
});
18731873

18741874
return response.data;

0 commit comments

Comments
 (0)