blob: 5476f2d28625a35479950f7a0c7dc043e3c25015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|