mirror of
https://github.com/comatory/fb2iCal
synced 2025-02-17 20:20:48 +01:00
fix deprecated usage of constructor with Buffer
This commit is contained in:
parent
53ee2c1fb5
commit
34ec276de2
@ -90,7 +90,7 @@ app.post('/download', async (req, res, next) => {
|
||||
res
|
||||
.contentType('text/calendar')
|
||||
.status(200)
|
||||
.send(new Buffer(ics, 'utf8'))
|
||||
.send(Buffer.from(ics, 'utf8'))
|
||||
} catch (err) {
|
||||
next(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user