mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: use correct Content-Type for template archive (#15410)
Fixes: https://github.com/coder/coder/issues/14124
This commit is contained in:
@ -1877,7 +1877,7 @@ class ApiMethods {
|
|||||||
|
|
||||||
uploadFile = async (file: File): Promise<TypesGen.UploadResponse> => {
|
uploadFile = async (file: File): Promise<TypesGen.UploadResponse> => {
|
||||||
const response = await this.axios.post("/api/v2/files", file, {
|
const response = await this.axios.post("/api/v2/files", file, {
|
||||||
headers: { "Content-Type": "application/x-tar" },
|
headers: { "Content-Type": file.type },
|
||||||
});
|
});
|
||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
|
Reference in New Issue
Block a user