@@ -178,17 +178,16 @@ def __init__(
178
178
path : str ,
179
179
* ,
180
180
base : Optional [str ] = None ,
181
- query_parameters : Optional = None ,
182
181
** parameters : Any
183
182
) -> None :
184
183
self .method : Literal ['GET' , 'POST' , 'PUT' , 'DELETE' ] = method
185
184
self .path = path
186
185
self .parameters = parameters
187
- self .query_parameters = query_parameters
188
186
url = (base or self .BASE ) + self .path
189
187
if parameters :
190
188
url = url .format_map ({k : quote (v ) if isinstance (v , str ) else v for k , v in self .parameters .items ()})
191
- self .url : URL = URL (url , encoded = True ).with_query (query_parameters )
189
+
190
+ self .url : URL = URL (url , encoded = True )
192
191
193
192
def __repr__ (self ) -> str :
194
193
return f'{ self .method } { str (self .url )} '
@@ -415,7 +414,7 @@ async def request(
415
414
if self ._authorization_token is MISSING and route .path != '/b2_authorize_account' :
416
415
await self ._find_authorization_token ()
417
416
headers ['Authorization' ] = self ._authorization_token
418
- route = Route (route .method , route .path , base = self ._api_url , query_parameters = route . query_parameters , ** route .parameters )
417
+ route = Route (route .method , route .path , base = self ._api_url , ** route .parameters )
419
418
420
419
for tries in range (5 ):
421
420
if upload_info :
0 commit comments