(self, response, **extra)
| 946 | self.cookies = SimpleCookie() |
| 947 | |
| 948 | def _parse_json(self, response, **extra): |
| 949 | if not hasattr(response, "_json"): |
| 950 | if not JSON_CONTENT_TYPE_RE.match(response.get("Content-Type")): |
| 951 | raise ValueError( |
| 952 | 'Content-Type header is "%s", not "application/json"' |
| 953 | % response.get("Content-Type") |
| 954 | ) |
| 955 | response._json = json.loads(response.text, **extra) |
| 956 | return response._json |
| 957 | |
| 958 | def _follow_redirect( |
| 959 | self, |