kopia lustrzana https://github.com/harvard-lil/archive.social
Tweaks
rodzic
75f70bbe40
commit
0022fb4670
|
@ -170,6 +170,7 @@ export default async function (fastify, opts) {
|
||||||
return reply
|
return reply
|
||||||
.code(200)
|
.code(200)
|
||||||
.header('Content-Type', 'application/pdf')
|
.header('Content-Type', 'application/pdf')
|
||||||
|
.header('Content-Disposition', 'attachment; filename="capture.pdf"')
|
||||||
.send(pdf);
|
.send(pdf);
|
||||||
}
|
}
|
||||||
catch(err) {
|
catch(err) {
|
||||||
|
|
|
@ -45,7 +45,7 @@ export class TwitterCapture {
|
||||||
networkidleTimeout: 5000,
|
networkidleTimeout: 5000,
|
||||||
browserBehaviorsTimeout: 35000,
|
browserBehaviorsTimeout: 35000,
|
||||||
videoCaptureTimeout: 10000,
|
videoCaptureTimeout: 10000,
|
||||||
renderTimeout: 3000
|
renderTimeout: 5000
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @type {object} - Based on TwitterCapture.defaults */
|
/** @type {object} - Based on TwitterCapture.defaults */
|
||||||
|
|
Ładowanie…
Reference in New Issue