Skip to content

Commit

Permalink
bug fix firefox upload error unsupported media type (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder authored Dec 15, 2020
1 parent 11b432d commit 2e0e835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/src/actions/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ class Objects {
const response = await apiRequest(`/repositories/${repoId}/branches/${branchId}/objects?${query}`, {
method: 'POST',
body: data,
});
}, {}, {});
if (response.status !== 201) {
throw new Error(await extractError(response));
}
Expand Down

0 comments on commit 2e0e835

Please sign in to comment.