From 030468d2cde87db143f8b5b7eba49ad440283541 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 6 Jan 2013 07:59:41 +0100 Subject: [PATCH] don't accept str or unicode in the body. --- gunicorn/http/wsgi.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 01ddd623..a92e7ed7 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -280,9 +280,6 @@ class Response(object): def write(self, arg): self.send_headers() - if isinstance(arg, text_type): - arg = arg.encode('utf-8') - assert isinstance(arg, binary_type), "%r is not a byte." % arg arglen = len(arg)