Skip to content

Conversation

@alextwoods
Copy link
Contributor

@alextwoods alextwoods commented Mar 20, 2025

Description of changes:
When using a str for the url in aiohttp.ClientSession.request, paths will be un-uri encoded. However, when a yarl.URL is provided with encoded=True it will be used as is. This matches the behavior of our CRT HTTP client.

yarl is an explicit dependency of aiohttp. The clientSession we call request on takes a "strOrUrl" and then if its a str, uses yarl.URL to build it - so by doing it explicitly, we're able to control whether the encoding is done or not

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@alextwoods alextwoods requested a review from a team as a code owner March 20, 2025 21:28
@alextwoods alextwoods merged commit c4c99ac into smithy-lang:develop Mar 21, 2025
2 checks passed
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.

3 participants