fix bug in proxy of res.send