Skip to content

Commit

Permalink
Fix cannot set headers after HTTP sent error (#1622)
Browse files Browse the repository at this point in the history
Co-authored-by: pablomendezroyo <[email protected]>
  • Loading branch information
dappnodedev and pablomendezroyo authored Feb 20, 2024
1 parent 8ca0d1b commit 55fc9c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/dappmanager/src/api/routes/packageManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const packageManifest = wrapHandler<Params>(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
Expand Down

0 comments on commit 55fc9c7

Please sign in to comment.