diff --git a/index.js b/index.js index b35b642..b3a7929 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ app.get('/printers/:name/jobs', (req, res) => { // --- Print API --- -app.post('/print', bodyParser.raw({ type: '*/*', limit: MAX_SIZE_MB * 1_000_000 }), (req, res) => { +app.post('/print', bodyParser.raw({ type: () => true, limit: MAX_SIZE_MB * 1_000_000 }), (req, res) => { const { body, query, headers } = req console.log("Received print job: ", { body, query })