Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

fix request_httprepr docstring

Mikhail Korobovb01292df02a3
diff --git a/scrapy/utils/request.py b/scrapy/utils/request.py
index 4871681a9..ac415e508 100644
--- a/scrapy/utils/request.py
+++ b/scrapy/utils/request.py
@@ -71,7 +71,7 @@ def request_authenticate(request, username, password):
def request_httprepr(request):
- """Return the raw HTTP representation (as string) of the given request.
+ """Return the raw HTTP representation (as bytes) of the given request.
This is provided only for reference since it's not the actual stream of
bytes that will be send when performing the request (that's controlled
by Twisted).