Skip to content

Commit

Permalink
fix: fix missing colon for uncommon port
Browse files Browse the repository at this point in the history
  • Loading branch information
laggage committed Nov 22, 2023
1 parent d05144c commit 904aa8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/image-upload.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ImageUploadService {
'Content-Type': mime.contentType(fileExt),
});
const { port, endPoint } = minioClientOption;
return `${minioClientOption.useSSL ? 'https' : 'http'}://${endPoint}${ port == null || port === 80 || port === 443 ? '' : port }/${bucketName}${filePath
return `${minioClientOption.useSSL ? 'https' : 'http'}://${endPoint}${ port == null || port === 80 || port === 443 ? '' : ':' + port }/${bucketName}${filePath
.split('/')
.map(x => encodeURI(x))
.join('/')}`;
Expand Down

0 comments on commit 904aa8d

Please sign in to comment.