don't print headers in console, reveals too much about the user

main
radex 2024-02-02 12:19:48 +01:00
parent 2f64dae624
commit 1185872bc7
Signed by: radex
SSH Key Fingerprint: SHA256:hvqRXAGG1h89yqnS+cyFTLKQbzjWD4uXIqw7Y+0ws30
1 changed files with 2 additions and 2 deletions

View File

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