mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 15:55:28 +00:00
websockets: fix actions on frames
This commit is contained in:
parent
1dc2fa0424
commit
2beae27541
@ -152,7 +152,7 @@ class WebsocketFrame(message.Message):
|
|||||||
|
|
||||||
def resolve(self, settings, msg=None):
|
def resolve(self, settings, msg=None):
|
||||||
return self.__class__(
|
return self.__class__(
|
||||||
[i.resolve(settings, msg) for i in self.tokens]
|
[i.resolve(settings, self) for i in self.tokens]
|
||||||
)
|
)
|
||||||
|
|
||||||
def spec(self):
|
def spec(self):
|
||||||
|
@ -13,6 +13,7 @@ class TestWebsocketFrame:
|
|||||||
def test_values(self):
|
def test_values(self):
|
||||||
specs = [
|
specs = [
|
||||||
"wf",
|
"wf",
|
||||||
|
"wf:dr",
|
||||||
"wf:b'foo'",
|
"wf:b'foo'",
|
||||||
"wf:cbinary",
|
"wf:cbinary",
|
||||||
"wf:c1",
|
"wf:c1",
|
||||||
|
Loading…
Reference in New Issue
Block a user