Skip to content

Support for aiohttp 3.11.18#1

Open
vladhog wants to merge 2 commits intoitem4:mainfrom
vladhog:main
Open

Support for aiohttp 3.11.18#1
vladhog wants to merge 2 commits intoitem4:mainfrom
vladhog:main

Conversation

@vladhog
Copy link

@vladhog vladhog commented May 5, 2025

Some time ago i needed aiohttp competable library that could add DNS over HTTPS support to aiohttp requests, but sadly found only this one. It was not updated in pretty long time and from first use was not working. In this pull request i made changes that allowed it to work at python 3.13 version and aiohttp 3.11.18, everything was tested and i by myself using it in my own projects.

vladhog added 2 commits May 5, 2025 13:19
- renamed ClientSession to DNSOverHTTPSClientSession in aiohttp_doh.py to make sure there will be no conflicts
- moved application/dns-json from params to header "accept" because at this moment most json supporting dns services getting accept time this way and not over params
- changed resolving tasks from wait() to gather()

Signed-off-by: vladhog <vladfomin@vladhog.ru>
Signed-off-by: vladhog <vladfomin@vladhog.ru>
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.

1 participant