We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb0ef1e + 7965f67 commit c4f05faCopy full SHA for c4f05fa
1 file changed
index.js
@@ -67,6 +67,7 @@ const gm = require("gm");
67
try {
68
const data = await fs.readFile(config.outputPath);
69
console.log("Image was accessed");
70
+ response.setHeader("Content-Length", Buffer.byteLength(data));
71
response.writeHead(200, { "Content-Type": "image/png" });
72
response.end(data);
73
} catch (e) {
0 commit comments