fixing mix http and nio-http endpoint