Skip to content
This repository was archived by the owner on Nov 7, 2021. It is now read-only.
This repository was archived by the owner on Nov 7, 2021. It is now read-only.

yarl (0.8.1) not compatible and not able to add http headers #124

@zpoint

Description

@zpoint

yarl (0.8.1) aio-libs/yarl#9

File "/usr/local/lib/python3.5/dist-packages/aioes/connection.py", line 41, in perform_request
    url = self._base_url.with_path(url)
AttributeError: 'URL' object has no attribute 'with_path'

I update aiohttp to 2.0.3 slove the "with_path" problem

And
I am not able to add http headers when I perform http request in es operation
I want to pass header as argument when instantiate the es client

headers = {"Host": u"***", "key": "***"}
es = Elasticsearch(['localhost:8888'], headers=headers)

TypeError: __init__() got an unexpected keyword argument 'headers'

with elasticsearch==5.1.0, I can do that
Now
I need to reserve header argument in connection.py->Connection->perform_request, and reserve for every method/class using it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions