mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-22 16:38:13 +00:00
return 404 if blog returns 403, caused by file not existing
This commit is contained in:
parent
8f14526354
commit
000c862ae1
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module.exports = BlogController =
|
|||
|
||||
logger.log url:url, "proxying request to blog api"
|
||||
request.get blogUrl, (err, r, data)->
|
||||
if r?.statusCode == 404
|
||||
if r?.statusCode == 404 or r?.statusCode == 403
|
||||
return ErrorController.notFound(req, res, next)
|
||||
if err?
|
||||
return res.send 500
|
||||
|
|
Loading…
Add table
Reference in a new issue