Skip to content

Commit 1736309

Browse files
authored
fix: use correct Content-Type for template archive (#15410)
Fixes: #14124
1 parent 18c2386 commit 1736309

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy