Removed commented lines
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
65dd591cf4
commit
0335d6c51e
|
@ -1,5 +1,4 @@
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
// const pdf = require('html-pdf');
|
|
||||||
const puppeteer = require('puppeteer');
|
const puppeteer = require('puppeteer');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const config = require('./config');
|
const config = require('./config');
|
||||||
|
|
|
@ -10,8 +10,6 @@ module.exports = app => {
|
||||||
|
|
||||||
res.setHeader('Content-type', 'application/pdf');
|
res.setHeader('Content-type', 'application/pdf');
|
||||||
res.setHeader('Content-Disposition', `inline; filename="${fileName}"`);
|
res.setHeader('Content-Disposition', `inline; filename="${fileName}"`);
|
||||||
|
|
||||||
//stream.pipe(res);
|
|
||||||
res.end(stream);
|
res.end(stream);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
next(error);
|
next(error);
|
||||||
|
|
Loading…
Reference in New Issue