| From 38cf669e27fab9de187eb11dabd7d85d73d5f470 Mon Sep 17 00:00:00 2001 |
| From: Jon Salz <jsalz@chromium.org> |
| Date: Fri, 20 Apr 2012 02:22:46 +0800 |
| Subject: [PATCH] Process remaining bytes in the body, if any. |
| |
| https://github.com/Lawouach/WebSocket-for-Python/issues/46 |
| --- |
| ws4py/client/__init__.py | 3 +++ |
| 1 files changed, 3 insertions(+), 0 deletions(-) |
| |
| diff --git a/ws4py/client/__init__.py b/ws4py/client/__init__.py |
| index aa4c8f2..29b1357 100644 |
| --- a/ws4py/client/__init__.py |
| +++ b/ws4py/client/__init__.py |
| @@ -71,6 +71,9 @@ class WebSocketBaseClient(WebSocket): |
| |
| self.handshake_ok() |
| |
| + if body != '': |
| + self.process(body) |
| + |
| @property |
| def handshake_headers(self): |
| parts = urlsplit(self.url) |
| -- |
| 1.7.3.4 |
| |