mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 02:55:43 -05:00
Have dev proxy return 502 when proxy fails, rather than calling next
This commit is contained in:
parent
ece3c6f19d
commit
c20ed58f9f
1 changed files with 1 additions and 1 deletions
|
@ -249,4 +249,4 @@ setupProxyMiddleware = (app) ->
|
|||
req.proxied = true
|
||||
proxy.web req, res, (e) ->
|
||||
console.warn("Failed to proxy: ", e)
|
||||
next()
|
||||
res.status(502).send({message: 'Proxy failed'})
|
||||
|
|
Loading…
Reference in a new issue