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)