mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-18 15:35:38 +00:00
Attempt to fix headers being set after send to client in send message
This commit is contained in:
@@ -179,7 +179,7 @@ const messageUpload = multer({
|
||||
router.post(
|
||||
"/",
|
||||
messageUpload.any(),
|
||||
async (req, res, next) => {
|
||||
(req, res, next) => {
|
||||
if (req.body.payload_json) {
|
||||
req.body = JSON.parse(req.body.payload_json);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user