fix bug in http client parser