Skip to content

Commit

Permalink
Fix bug where URL is being signed after being quoted
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopedrosa committed Oct 28, 2024
1 parent 6fa54a7 commit f19139a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opensearchpy/helpers/asyncsigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# GitHub history for details.

from typing import Any, Dict, Optional, Union
from ..compat import unquote


class AWSV4SignerAsyncAuth:
Expand Down Expand Up @@ -56,7 +57,7 @@ def _sign_request(
# create an AWS request object and sign it using SigV4Auth
aws_request = AWSRequest(
method=method,
url=url,
url=unquote(url),
data=body,
)

Expand Down

0 comments on commit f19139a

Please sign in to comment.