diff --git a/python/nghttp2.pyx b/python/nghttp2.pyx index 599d9618..51c758c3 100644 --- a/python/nghttp2.pyx +++ b/python/nghttp2.pyx @@ -860,7 +860,7 @@ class BaseRequestHandler: return body else: raise Exception(('body must be None or instance of str or bytes ' - 'or io.BytesIO')) + 'or io.IOBase')) def _encode_headers(headers): return [(k if isinstance(k, bytes) else k.encode('utf-8'),