fix: install from app key
This commit is contained in:
@@ -154,6 +154,7 @@ router.get('/api/micro-app/download/:id', async (req, res) => {
|
||||
return;
|
||||
}
|
||||
res.setHeader('Content-Disposition', `attachment; filename="${encodeURIComponent(fileName)}"`);
|
||||
res.setHeader('app-key', file.data?.key || id);
|
||||
res.writeHead(200, { 'Content-Type': 'application/octet-stream' });
|
||||
try {
|
||||
const stream = await minioClient.getObject(bucketName, objectName);
|
||||
|
||||
Reference in New Issue
Block a user