Skip to content

Commit 773fc28

Browse files
committed
fix: use correct Content-Type for template archive
1 parent f0a4de5 commit 773fc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/api/api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ class ApiMethods {
18771877

18781878
uploadFile = async (file: File): Promise<TypesGen.UploadResponse> => {
18791879
const response = await this.axios.post("/api/v2/files", file, {
1880-
headers: { "Content-Type": "application/x-tar" },
1880+
headers: { "Content-Type": file.type },
18811881
});
18821882

18831883
return response.data;

0 commit comments

Comments
 (0)