router: fix wrong response.end