Cleaned the server-node dir
Split express into different ports for easier migration Typed page ops that had warnings
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
|
||||
export function respondWithBinaryPdf(res, buffer, filename) {
|
||||
res.writeHead(200, {
|
||||
'Content-Type': "application/pdf",
|
||||
'Content-disposition': 'attachment;filename=' + filename,
|
||||
'Content-Length': buffer.length
|
||||
});
|
||||
res.end(Buffer.from(buffer, 'binary'))
|
||||
}
|
||||
Reference in New Issue
Block a user