Fix AuthorizationException with AWSV4SignerAsyncAuth when the doc ID has special characters. (#848)
* Lifecycle integration tests. Signed-off-by: dblock <[email protected]> * Added a test that makes sure the slash is properly encoded. Signed-off-by: dblock <[email protected]> * Added more tests for signer and _make_path. Signed-off-by: Nathalie Jonathan <[email protected]> * Prevent AIOHttpConnection from encoding the url a second time. Signed-off-by: Nathalie Jonathan <[email protected]> --------- Signed-off-by: dblock <[email protected]> Signed-off-by: Nathalie Jonathan <[email protected]> Co-authored-by: dblock <[email protected]>
This commit is contained in:
@@ -15,6 +15,8 @@ import ssl
|
||||
import warnings
|
||||
from typing import Any, Collection, Mapping, Optional, Union
|
||||
|
||||
import yarl
|
||||
|
||||
from .._async._extra_imports import aiohttp, aiohttp_exceptions # type: ignore
|
||||
from .._async.compat import get_running_loop
|
||||
from .._async.http_aiohttp import AIOHttpConnection
|
||||
@@ -210,7 +212,7 @@ class AsyncHttpConnection(AIOHttpConnection):
|
||||
try:
|
||||
async with self.session.request(
|
||||
method,
|
||||
url,
|
||||
yarl.URL(url, encoded=True),
|
||||
data=body,
|
||||
auth=auth,
|
||||
headers=req_headers,
|
||||
|
||||
Reference in New Issue
Block a user