mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Buffer() to Buffer.from
This commit is contained in:
parent
62a7b1255c
commit
d1e37c27c0
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ favicons = (app) =>
|
|||
if ENV_DEBUG
|
||||
log.debug "Req: #{feed_id}, etag: #{etag}/#{docs?.color} " + if err then "(err: #{err})" else ""
|
||||
res.header 'etag', docs.color
|
||||
body = new Buffer(docs.data, 'base64')
|
||||
body = Buffer.from(docs.data, 'base64')
|
||||
res.set("Content-Type", "image/png")
|
||||
res.status(200).send body
|
||||
else
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
log.debug(`Req: ${feed_id}, etag: ${etag}/${docs != null ? docs.color : void 0} ` + (err ? `(err: ${err})` : ""));
|
||||
}
|
||||
res.header('etag', docs.color);
|
||||
body = new Buffer(docs.data, 'base64');
|
||||
body = Buffer.from(docs.data, 'base64');
|
||||
res.set("Content-Type", "image/png");
|
||||
return res.status(200).send(body);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue