1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

fix deprecated usage of constructor with Buffer

This commit is contained in:
Ondřej Synáček
2019-11-27 12:51:13 +01:00
parent 53ee2c1fb5
commit 34ec276de2

View File

@@ -90,7 +90,7 @@ app.post('/download', async (req, res, next) => {
res res
.contentType('text/calendar') .contentType('text/calendar')
.status(200) .status(200)
.send(new Buffer(ics, 'utf8')) .send(Buffer.from(ics, 'utf8'))
} catch (err) { } catch (err) {
next(err) next(err)
} }