fix http response parsing