From c8e3162ece16b3086d62e87b70f1751248aae5e1 Mon Sep 17 00:00:00 2001 From: Richard Hall Date: Mon, 25 Apr 2016 14:42:34 -0400 Subject: [PATCH] Setting Content-Length Headers to Strings to prevent unicode issues with latest Gevent version. --- socketio/handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socketio/handler.py b/socketio/handler.py index 933cb64..8e3833f 100644 --- a/socketio/handler.py +++ b/socketio/handler.py @@ -213,7 +213,7 @@ def handle_bad_request(self): self.start_response("400 Bad Request", [ ('Content-Type', 'text/plain'), ('Connection', 'close'), - ('Content-Length', 0) + ('Content-Length', '0') ]) @@ -222,5 +222,5 @@ def handle_disconnect_request(self): self.start_response("200 OK", [ ('Content-Type', 'text/plain'), ('Connection', 'close'), - ('Content-Length', 0) + ('Content-Length', '0') ])