Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Fixes empty content type during upload #9848

Merged
merged 3 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix code style issues
  • Loading branch information
K3das authored Dec 30, 2022
commit eeb1596e0955474912758ed7ea1fe9201c35f503
2 changes: 1 addition & 1 deletion src/ContentMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export async function uploadFile(
progressHandler,
abortController,
includeFilename: false,
type: "application/octet-stream"
type: "application/octet-stream",
});
if (abortController.signal.aborted) throw new UploadCanceledError();

Expand Down
2 changes: 1 addition & 1 deletion test/ContentMessages-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ describe("uploadFile", () => {
expect.objectContaining({
progressHandler,
includeFilename: false,
type: "application/octet-stream"
type: "application/octet-stream",
}),
);
expect(mocked(client.uploadContent).mock.calls[0][0]).not.toBe(file);
Expand Down