Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1736309

Browse files
authored
fix: use correct Content-Type for template archive (#15410)
Fixes:#14124
1 parent18c2386 commit1736309

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
constresponse=awaitthis.axios.post("/api/v2/files",file,{
1880-
headers:{"Content-Type":"application/x-tar"},
1880+
headers:{"Content-Type":file.type},
18811881
});
18821882

18831883
returnresponse.data;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp