fix bugs
This commit is contained in:
@@ -5,7 +5,8 @@ router.all('/api/s1/share/*splat', async (req, res) => {
|
||||
try {
|
||||
const url = req.url;
|
||||
const _url = new URL(url || '', 'http://localhost');
|
||||
const objectName = _url.pathname.replace('/api/s1/share/', '');
|
||||
let objectName = _url.pathname.replace('/api/s1/share/', '');
|
||||
objectName = decodeURIComponent(objectName);
|
||||
await authMinio(req, res, objectName);
|
||||
} catch (e) {
|
||||
console.log('get share resource error url', req.url);
|
||||
|
||||
Reference in New Issue
Block a user