summaryrefslogtreecommitdiff
path: root/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/ws4py/files/ws4py-0.2.1-process-data.patch')
-rw-r--r--dev-python/ws4py/files/ws4py-0.2.1-process-data.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch b/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch
new file mode 100644
index 00000000000..5476f2d2862
--- /dev/null
+++ b/dev-python/ws4py/files/ws4py-0.2.1-process-data.patch
@@ -0,0 +1,27 @@
+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
+