mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix graphql response type
This commit is contained in:
@@ -63,7 +63,11 @@ export const respond: RequestHandler = asyncHandler(async (req, res) => {
|
||||
}
|
||||
}
|
||||
|
||||
return res.json(res.locals.payload);
|
||||
if (Buffer.isBuffer(res.locals.payload)) {
|
||||
return res.end(res.locals.payload);
|
||||
} else {
|
||||
return res.json(res.locals.payload);
|
||||
}
|
||||
});
|
||||
|
||||
function getDateFormatted() {
|
||||
|
||||
Reference in New Issue
Block a user