(response)
| 394 | |
| 395 | |
| 396 | def is_processable_html_response(response): |
| 397 | content_encoding = response.get("Content-Encoding", "") |
| 398 | content_type = response.get("Content-Type", "").split(";")[0] |
| 399 | return ( |
| 400 | not getattr(response, "streaming", False) |
| 401 | and content_encoding == "" |
| 402 | and content_type in _HTML_TYPES |
| 403 | ) |
| 404 | |
| 405 | |
| 406 | def get_csp_nonce(request) -> str | None: |
no test coverage detected
searching dependent graphs…