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:
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user