Fix printing without specified content-type
parent
b77a893da5
commit
8a0cd8721a
2
index.js
2
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 })
|
||||
|
||||
|
|
Loading…
Reference in New Issue