Skip to content

Commit 8f78ad2

Browse files
alexandershpakRailag
authored andcommitted
Ashpak/bug change content type for save image (#341)
* small fix * fix
1 parent d7ad23d commit 8f78ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/agent-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ const getImageSnapshot = async function (fog, transaction) {
382382
};
383383

384384
const putImageSnapshot = async function (req, fog, transaction) {
385-
if (req.headers['content-type'] !== 'application/zip') {
385+
if (req.headers['content-type'].includes('multipart/form-data')) {
386386
throw new Errors.ValidationError(ErrorMessages.INVALID_CONTENT_TYPE);
387387
}
388388

0 commit comments

Comments
 (0)