From 55fc9c77202691ab90489a8f7dc4a568a0c8090d Mon Sep 17 00:00:00 2001 From: dappnodedev <144998261+dappnodedev@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:12:55 +0100 Subject: [PATCH] Fix cannot set headers after HTTP sent error (#1622) Co-authored-by: pablomendezroyo <41727368+pablomendezroyo@users.noreply.github.com> --- packages/dappmanager/src/api/routes/packageManifest.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/dappmanager/src/api/routes/packageManifest.ts b/packages/dappmanager/src/api/routes/packageManifest.ts index 2fdc61236..f78a36b4e 100644 --- a/packages/dappmanager/src/api/routes/packageManifest.ts +++ b/packages/dappmanager/src/api/routes/packageManifest.ts @@ -16,8 +16,7 @@ export const packageManifest = wrapHandler(async (req, res) => { const dnp = await listPackage({ dnpName }); const manifest = readManifestIfExists(dnp); if (!manifest) { - res.status(404).send("Manifest not found"); - return; + return res.status(404).send("Manifest not found"); } // Filter manifest manually to not send new private properties