Compare commits

...

2 Commits

Author SHA1 Message Date
radex 8a0cd8721a
Fix printing without specified content-type 2024-02-07 17:47:17 +01:00
radex b77a893da5
fix dev-config 2024-02-02 20:44:44 +01:00
2 changed files with 5 additions and 5 deletions

View File

@ -3,22 +3,22 @@
{
"name": "DYMO_LabelWriter450",
"aliases": ["dymo", "label"],
"ipp_url": "ipp://printmaster.local:443/printers/DYMO_LabelWriter450"
"ipp_url": "ipp://printmaster.local:631/printers/DYMO_LabelWriter450"
},
{
"name": "Zebra_GK420T",
"aliases": ["zebra", "biglabel", "4x6"],
"ipp_url": "ipp://printmaster.local:443/printers/Zebra_GK420T"
"ipp_url": "ipp://printmaster.local:631/printers/Zebra_GK420T"
},
{
"name": "Brother_MFC8380DN",
"aliases": ["brother", "franciszek", "a4"],
"ipp_url": "ipp://printmaster.local:443/printers/Brother_MFC8380DN"
"ipp_url": "ipp://printmaster.local:631/printers/Brother_MFC8380DN"
},
{
"name": "OKI_C332",
"aliases": ["oki", "okił", "a4_color"],
"ipp_url": "ipp://printmaster.local:443/printers/OKI_C332"
"ipp_url": "ipp://printmaster.local:631/printers/OKI_C332"
}
]
}

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