don't print headers in console, reveals too much about the user
parent
2f64dae624
commit
1185872bc7
4
index.js
4
index.js
|
@ -104,8 +104,8 @@ app.get('/printers/:name/jobs', (req, res) => {
|
|||
// --- Print API ---
|
||||
|
||||
app.post('/print', bodyParser.raw({ type: '*/*', limit: MAX_SIZE_MB * 1_000_000 }), (req, res) => {
|
||||
const { body, query, headers } = req
|
||||
console.log("Received print job: ", { body, query, headers })
|
||||
const { body, query } = req
|
||||
console.log("Received print job: ", { body, query })
|
||||
|
||||
// validate query params
|
||||
const { printer: printerName, copies: copiesParam, ...otherParams } = query
|
||||
|
|
Loading…
Reference in New Issue