Skip to content

Commit

Permalink
Remove / from being safe from URI encoding when constructing paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Nov 24, 2024
1 parent 5c4c281 commit e1b6310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def __init__(self, method: str, path: str, *, metadata: Optional[str] = None, **
self.metadata: Optional[str] = metadata
url = self.BASE + self.path
if parameters:
url = url.format_map({k: _uriquote(v) if isinstance(v, str) else v for k, v in parameters.items()})
url = url.format_map({k: _uriquote(v, safe='') if isinstance(v, str) else v for k, v in parameters.items()})
self.url: str = url

# major parameters:
Expand Down

0 comments on commit e1b6310

Please sign in to comment.