Skip to content

Commit f2ecad4

Browse files
Merge pull request #756 from topcoder-platform/feature/plat-3292
url encode
2 parents d768e9a + acd8e76 commit f2ecad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/attachments/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function attachmentCreatedKafkaHandler(app, topic, payload) {
6868
}
6969
const awsS3Url = `https://${config.get('attachmentsDMZS3Bucket')}.s3.amazonaws.com/${payload.path}`;
7070
const avScanPayload = {
71-
url: awsS3Url,
71+
url: encodeURIComponent(awsS3Url),
7272
fileName: payload.path.split('/').pop(),
7373
moveFile: false,
7474
callbackOption: 'kafka',

0 commit comments

Comments
 (0)