Browse Source

Remove / from being safe from URI encoding when constructing paths

pull/10027/head
Rapptz 4 months ago
parent
commit
e1b6310ef3
  1. 2
      discord/http.py

2
discord/http.py

@ -309,7 +309,7 @@ class Route:
self.metadata: Optional[str] = metadata self.metadata: Optional[str] = metadata
url = self.BASE + self.path url = self.BASE + self.path
if parameters: 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 self.url: str = url
# major parameters: # major parameters:

Loading…
Cancel
Save