Skip to content

Fix to only add assert_hostname for https urls#578

Merged
basepi merged 3 commits into
elastic:masterfrom
basepi:asserthostname570
Aug 30, 2019
Merged

Fix to only add assert_hostname for https urls#578
basepi merged 3 commits into
elastic:masterfrom
basepi:asserthostname570

Conversation

@basepi

@basepi basepi commented Aug 29, 2019

Copy link
Copy Markdown
Contributor

Given an http:// server url and 'VERIFY_SERVER_CERT': False,
don't pass in assert_hostname (it will error).

Fixes #570

Given an http:// server url and `'VERIFY_SERVER_CERT': False`,
don't pass in assert_hostname (it will error)
@basepi basepi requested a review from beniwohli August 29, 2019 22:52

@beniwohli beniwohli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!

Comment thread elasticapm/transport/http.py Outdated
Comment thread tests/transports/test_urllib3.py
@beniwohli

Copy link
Copy Markdown
Contributor

jenkins run elasticsearch-ci/docs

@basepi

basepi commented Aug 30, 2019

Copy link
Copy Markdown
Contributor Author

All requested changes complete.

@basepi basepi requested a review from beniwohli August 30, 2019 14:50

@beniwohli beniwohli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@basepi

basepi commented Aug 30, 2019

Copy link
Copy Markdown
Contributor Author

Looks like it was just the flakey windows test that failed. Merging.

@basepi basepi merged commit aadaba1 into elastic:master Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

__init__() got an unexpected keyword argument 'assert_hostname'

2 participants