mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
fix(frontend): fix invalid json error when HTTP response is 204
This commit is contained in:
@@ -63,7 +63,6 @@ const handler = async (req, res) => {
|
||||
message_id: registeredTask.id,
|
||||
}),
|
||||
});
|
||||
await ackRes.json();
|
||||
|
||||
// Send the results to the client.
|
||||
res.status(200).json(registeredTask);
|
||||
|
||||
Reference in New Issue
Block a user