Scrapy, a fast high-level web crawling & scraping framework for Python.
HTTP/2: fix canceling a request before a connection has been established
Adrián Chaves0e4b291701ba
diff --git a/scrapy/core/http2/stream.py b/scrapy/core/http2/stream.pyindex e345ca79a..572dbf7aa 100644--- a/scrapy/core/http2/stream.py+++ b/scrapy/core/http2/stream.py@@ -459,7 +459,7 @@ class Stream:request=self._request,certificate=self._protocol.metadata['certificate'],ip_address=self._protocol.metadata['ip_address'],- protocol=to_unicode(self._protocol.transport.negotiatedProtocol),+ protocol='h2',)self._deferred_response.callback(response)