diff --git a/src/send.js b/src/send.js index 6646563..c63326a 100644 --- a/src/send.js +++ b/src/send.js @@ -9,6 +9,7 @@ const sendAvatar = ({ url, res, isError }) => { stream.on('response', resAvatar => res.set('Content-Type', resAvatar.headers['content-type']) ) + stream.on('error', () => res.status(404)) return stream.pipe(res) }