replace keep-alive checking code with http-parser's http_should_keep_alive
fix typo