mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Fixed a bug with bytes encoding error
This commit is contained in:
parent
93425d4b1a
commit
6bf250aa3e
@ -28,7 +28,7 @@ class Column(col_bytes.Column):
|
||||
class EncodingMixin:
|
||||
def __init__(self, data, encoding_args):
|
||||
self.encoding_args = encoding_args
|
||||
super().__init__(data.encode(*self.encoding_args))
|
||||
super().__init__(data.__str__().encode(*self.encoding_args))
|
||||
|
||||
def get_data(self):
|
||||
data = super().get_data()
|
||||
|
Loading…
Reference in New Issue
Block a user