Skip to content
Patch ssl.match_hostname for Unicode(idna) domains support
Python
Branch: master
Clone or download
dependabot-preview Bump aiohttp from 3.5.4 to 3.6.0
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.5.4 to 3.6.0.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.5.4...v3.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit 4e569e5 Sep 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests Fix messages. Jul 3, 2018
.gitignore Bring it to life Jun 30, 2018
.pyup.yml Update idna-ssl every month Dec 17, 2018
.travis.yml
LICENSE Update LICENSE Feb 8, 2018
MANIFEST.in
README.rst Fix badges Jun 30, 2018
example.py
idna_ssl.py
requirements.txt Bump aiohttp from 3.5.4 to 3.6.0 Sep 9, 2019
setup.cfg
setup.py Add Python 3.7 classifier Jun 30, 2018
tox.ini

README.rst

idna-ssl

info:Patch ssl.match_hostname for Unicode(idna) domains support
https://travis-ci.com/aio-libs/idna-ssl.svg?branch=master

Installation

pip install idna-ssl

Usage

from idna_ssl import patch_match_hostname  # noqa isort:skip
patch_match_hostname()  # noqa isort:skip

import asyncio

import aiohttp

URL = 'https://цфоут.мвд.рф/news/item/8065038/'


async def main():
    async with aiohttp.ClientSession() as session:
        async with session.get(URL) as response:
            print(response)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Motivation

  • Here is 100% backward capability
  • Related aiohttp issue
  • Related Python bug
  • Related Python pull request
  • It is fixed (by January 27 2018) in upcoming Python 3.7, but IDNA2008 is still broken

Thanks

The library was donated by Ocean S.A.

Thanks to the company for contribution.

You can’t perform that action at this time.