mirror of https://github.com/scrapy/scrapy.git
fix: response.json() call makes unnecessary memory allocation
This commit is contained in:
parent
3318971512
commit
19867659f3
|
|
@ -82,7 +82,7 @@ class TextResponse(Response):
|
|||
Deserialize a JSON document to a Python object.
|
||||
"""
|
||||
if self._cached_decoded_json is _NONE:
|
||||
self._cached_decoded_json = json.loads(self.text)
|
||||
self._cached_decoded_json = json.loads(self.body)
|
||||
return self._cached_decoded_json
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Reference in New Issue