diff --git a/README.md b/README.md index 30d314a..0152645 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ pip install -U primp ## Features - [x] Impersonate: impersonate option mimics web browsers by replicating their headers and TLS/JA3/JA4/HTTP2 fingerprints. - [x] Automatic Character Encoding Detection: the encoding is taken from the `Content-Type` header or ` Result { + let raw_bytes = self.content.bind(py).as_bytes(); + let text = + py.allow_threads(|| from_read_with_decorator(raw_bytes, 100, RichDecorator::new())); + Ok(text) + } }