small code fix in http client