diff --git a/packages/http/src/http.js b/packages/http/src/http.js index cbc4753..7ac9f07 100644 --- a/packages/http/src/http.js +++ b/packages/http/src/http.js @@ -60,6 +60,7 @@ export const createHttpServer = async (latus) => { target: `http://127.0.0.1:${devPort}`, }); proxy.on('proxyRes', async (proxyRes, req, res) => { + res.statusCode = proxyRes.statusCode; if ('text/html; charset=UTF-8' === proxyRes.headers['content-type']) { requestMiddleware(req, res, () => { res.setHeader('Content-Type', proxyRes.headers['content-type']);