Skip to content

Commit e07978e

Browse files
committed
fix(aiohttp): Use raw_path instead of rel_url to avoid encoding issues
Refs: #7031 & PY-2667
1 parent 09f8c44 commit e07978e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/integrations/aiohttp/test_aiohttp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,9 @@ async def test_outgoing_trace_headers_skip_query_signed_baggage(
783783

784784
async def handler(request):
785785
received_headers.append(request.headers.copy())
786-
received_urls.append(str(request.rel_url))
786+
# Use the raw target so aiohttp/yarl URL canonicalization does not
787+
# change the encoding of the presigned query parameters.
788+
received_urls.append(request.raw_path)
787789
return web.Response(text="OK")
788790

789791
raw_server = await aiohttp_raw_server(handler)

0 commit comments

Comments
 (0)