mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-20 00:14:43 +02:00
do not send http header twice
This commit is contained in:
@@ -360,9 +360,6 @@ router.post("/", async (req, res) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(req.path, error);
|
console.error(req.path, error);
|
||||||
await repoUtils.updateStatus(repoConfig, "error", "unable_to_anonymize");
|
await repoUtils.updateStatus(repoConfig, "error", "unable_to_anonymize");
|
||||||
return res
|
|
||||||
.status(500)
|
|
||||||
.json({ error: "unable_to_anonymize", message: error.message });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user