forcediphttpsadapter icon indicating copy to clipboard operation
forcediphttpsadapter copied to clipboard

ForcedIPHTTPSAdapter is not pickleable

Open Alir3za97 opened this issue 2 years ago • 0 comments

from forcediphttpsadapter.adapters import ForcedIPHTTPSAdapter import pickle adapter = ForcedIPHTTPSAdapter(dest_ip='127.0.0.1') pickle.loads(pickle.dumps(adapter))

throws: AttributeError: 'ForcedIPHTTPSAdapter' object has no attribute 'dest_ip'

The problem is that "dest_ip" field is not returned in __getstate__ method.

Alir3za97 avatar Jan 18 '23 18:01 Alir3za97