Fix printing without specified content-type

main
radex 2024-02-07 17:47:17 +01:00
parent b77a893da5
commit 8a0cd8721a
Signed by: radex
SSH Key Fingerprint: SHA256:hvqRXAGG1h89yqnS+cyFTLKQbzjWD4uXIqw7Y+0ws30
1 changed files with 1 additions and 1 deletions

View File

@ -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 })