File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -712,6 +712,7 @@ def __init__(self, json):
712
712
self ._trailers = CaptureHttpHeaders (json .get ('trailers' ))
713
713
from urllib .parse import urlparse
714
714
url = urlparse ('https://reqable.com' + json ['path' ])
715
+ self ._params = url .params
715
716
self ._path = url .path
716
717
self ._queries = CaptureHttpQueries .parse (url .query )
717
718
@@ -812,10 +813,11 @@ def mime(self) -> Union[str, None]:
812
813
813
814
# Serialize the request fields to a dict.
814
815
def serialize (self ) -> dict :
815
- if len (self .queries ) == 0 :
816
- path = self .path
817
- else :
818
- path = self .path + '?' + self .queries .serialize ()
816
+ path = self .path
817
+ if self ._params != None and self ._params != '' :
818
+ path = path + ';' + self ._params
819
+ if len (self .queries ) != 0 :
820
+ path = path + '?' + self .queries .serialize ()
819
821
return {
820
822
'method' : self .method ,
821
823
'path' : path ,
You can’t perform that action at this time.
0 commit comments