Skip to content

ForcedIPHTTPSAdapter is not pickleable #11

Description

@Alir3za97

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions