Browse Source

proxy issues no longer crash the server

master
Lloyd Brookes 8 years ago
parent
commit
712ca37865
  1. 3
      lib/middleware.js

3
lib/middleware.js

@ -21,6 +21,9 @@ function proxyRequest (route) {
changeOrigin: true, changeOrigin: true,
secure: false secure: false
}) })
proxy.on('error', err => {
// not worth crashing for
})
return function proxyMiddleware () { return function proxyMiddleware () {
const keys = [] const keys = []

Loading…
Cancel
Save