mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +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:
|
class EncodingMixin:
|
||||||
def __init__(self, data, encoding_args):
|
def __init__(self, data, encoding_args):
|
||||||
self.encoding_args = 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):
|
def get_data(self):
|
||||||
data = super().get_data()
|
data = super().get_data()
|
||||||
|
Loading…
Reference in New Issue
Block a user