You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def_patch(self, opt={}):
""" private function to patch this request. This function could be called before/after preparation. :param dict opt: options, used options would be popped. Refer to Request.opt_* for details. """opt_netloc=opt.pop(Request.opt_url_netloc, None)
opt_scheme=opt.pop(Request.opt_url_scheme, None)
ifopt_netlocoropt_scheme:
scheme, netloc, path, params, query, fragment=six.moves.urllib.parse.urlparse(self.__url)
self.__url=six.moves.urllib.parse.urlunparse((
opt_schemeorscheme,
opt_netlocornetloc,
path,
params,
query,
fragment
))
logger.info('patching url: [{0}]'.format(self.__url))
pyswagger.io.Request
the pops should be changed to
Currently it modifies the original dictionary making subsequent requests with the same opts impossible (without copying the opt dict).
The text was updated successfully, but these errors were encountered: