On Wed, Mar 16, 2022 at 8:57 AM Matthias Urlichs <[email protected]> wrote: > > Package: python3-httpx > Version: 0.22.0-1 > Severity: important > X-Debbugs-Cc: [email protected] > > Please teach httpx that it needs to depend on h11 >>0.11.
i think this is more a problem in httpcore than httpx, given the latter has no direct dependencies on h11 > Error while testing: > > self = <AsyncHTTP11Connection ['http://localhost:40923', CLOSED, Request > Count: 1]> > request = <Request [b'GET']> > > async def _receive_response_headers( > self, request: Request > ) -> Tuple[bytes, int, bytes, List[Tuple[bytes, bytes]]]: > timeouts = request.extensions.get("timeout", {}) > timeout = timeouts.get("read", None) > > while True: > event = await self._receive_event(timeout=timeout) > if isinstance(event, h11.Response): > break > > http_version = b"HTTP/" + event.http_version > > # h11 version 0.11+ supports a `raw_items` interface to get the > # raw header casing, rather than the enforced lowercase headers. > > headers = event.headers.raw_items() > E AttributeError: 'list' object has no attribute 'raw_items' what exactly were you running that caused this issue? -- Sandro "morph" Tosi My website: http://sandrotosi.me/ Me at Debian: http://wiki.debian.org/SandroTosi Twitter: https://twitter.com/sandrotosi

