websockets: fix actions on frames

This commit is contained in:
Aldo Cortesi 2015-05-05 11:16:29 +12:00
parent 1dc2fa0424
commit 2beae27541
2 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class WebsocketFrame(message.Message):
def resolve(self, settings, msg=None):
return self.__class__(
[i.resolve(settings, msg) for i in self.tokens]
[i.resolve(settings, self) for i in self.tokens]
)
def spec(self):

View File

@ -13,6 +13,7 @@ class TestWebsocketFrame:
def test_values(self):
specs = [
"wf",
"wf:dr",
"wf:b'foo'",
"wf:cbinary",
"wf:c1",