@@ -837,7 +837,10 @@ def get(self, path_segment="", owner=None, app=None, sharing=None, **query):
837
837
# path = path.replace(PATH_JOBS_V2, PATH_JOBS)
838
838
839
839
if api_version == 1 :
840
- path = path .replace (PATH_JOBS_V2 , PATH_JOBS )
840
+ if isinstance (path , UrlEncoded ):
841
+ path = UrlEncoded (path .replace (PATH_JOBS_V2 , PATH_JOBS ), skip_encode = True )
842
+ else :
843
+ path = path .replace (PATH_JOBS_V2 , PATH_JOBS )
841
844
842
845
return self .service .get (path ,
843
846
owner = owner , app = app , sharing = sharing ,
@@ -909,7 +912,10 @@ def post(self, path_segment="", owner=None, app=None, sharing=None, **query):
909
912
# path = path.replace(PATH_JOBS_V2, PATH_JOBS)
910
913
911
914
if api_version == 1 :
912
- path = path .replace (PATH_JOBS_V2 , PATH_JOBS )
915
+ if isinstance (path , UrlEncoded ):
916
+ path = UrlEncoded (path .replace (PATH_JOBS_V2 , PATH_JOBS ), skip_encode = True )
917
+ else :
918
+ path = path .replace (PATH_JOBS_V2 , PATH_JOBS )
913
919
914
920
return self .service .post (path , owner = owner , app = app , sharing = sharing , ** query )
915
921
0 commit comments