Skip to content

Commit 5d57e4f

Browse files
authored
fix: Use multipart/form-data in PUT /api/v1/profile (#1415)
1 parent ac170ac commit 5d57e4f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/adapters/action/dispatcher-http-hook-mastodon.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ function inferEncoding(action: HttpActionType, path: string): Encoding {
4343
(action === "create" && path === "/api/v1/email") ||
4444
(action === "create" && path === "/api/v1/featured_tag") ||
4545
(action === "create" && path === "/api/v1/media") ||
46-
(action === "create" && path === "/api/v2/media")
46+
(action === "create" && path === "/api/v2/media") ||
47+
(action === "update" && path === "/api/v1/profile")
4748
) {
4849
return "multipart-form";
4950
}

0 commit comments

Comments
 (0)