mirror of
https://github.com/django-components/django-components.git
synced 2025-07-16 04:54:59 +00:00
Issue loading media when RENDER_DEPENDENCIES True
This commit is contained in:
parent
84ae5fb4bd
commit
dcbe0bccd1
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class ComponentDependencyMiddleware:
|
|||
"RENDER_DEPENDENCIES", False
|
||||
)
|
||||
and not isinstance(response, StreamingHttpResponse)
|
||||
and response["Content-Type"].startswith("text/html")
|
||||
and response.get("Content-Type", "").startswith("text/html")
|
||||
):
|
||||
response.content = process_response_content(response.content)
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue