I was taking my cue from [scrapy.http](https://github.com/scrapy/scrapy/blob/master/scrapy/http/__init__.py) here, specifically so we could add other backends later.
But do you have an idea how to fix this?