fix http reply detection