Closed dkatashev closed 4 years ago
This PR fix the problem associated with the route / and rest routes. In order to reproduce the problem, you can use the code below, which will cause the router /body to stop being called without this fix.
const connect = require('connect'); const app = connect(); app.use('/', (req, res, next) => { const { headers, method, body } = req; res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify({ headers, method, body }, null, 2)); next(); }); app.use('/body', (req, res, next) => { const { body } = req; res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify({ body }, null, 2)); next(); });
Closing due to no response.
This PR fix the problem associated with the route / and rest routes. In order to reproduce the problem, you can use the code below, which will cause the router /body to stop being called without this fix.