Skip to content

Commit

Permalink
Merge pull request #9 from amgedr/ssl-compatibility
Browse files Browse the repository at this point in the history
Do not specify SSL version
  • Loading branch information
amgedr committed Jul 12, 2020
2 parents d43d3fd + a620bc8 commit fcb1222
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -3,9 +3,10 @@

language: python
python:
- 3.8
- 3.7
- 3.6
- 3.5
- 3.4

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Expand Up @@ -7,7 +7,6 @@ python =
3.7: py37
3.6: py36
3.5: py35
3.4: py34

[testenv:flake8]
basepython=python
Expand Down
2 changes: 1 addition & 1 deletion webchk/http.py
Expand Up @@ -62,7 +62,7 @@ def parse_url(url):
def _http_connect(loc):
"""Connects to the host and returns an HTTP or HTTPS connections."""
if loc.scheme == "https":
ssl_context = ssl.SSLContext(protocol=ssl.PROTOCOL_SSLv23)
ssl_context = ssl.SSLContext()
return http.client.HTTPSConnection(loc.netloc, context=ssl_context)
return http.client.HTTPConnection(loc.netloc)

Expand Down

0 comments on commit fcb1222

Please sign in to comment.