Update CurlHttpClient.php

fixed: if the queries is empty, the question mark will be appended tp the end of the url