Fixed warnings in send_request