Fixed res.end breakage

Arguments passed to res.end were not applied. Fixed.