mistercrunch commented on a change in pull request #8370: [Config] Cache static
resources
URL:
https://github.com/apache/incubator-superset/pull/8370#discussion_r334260281
##########
File path: superset/views/core.py
##########
@@ -3127,8 +3127,17 @@ class CssTemplateAsyncModelView(CssTemplateModelView):
@app.after_request
def apply_http_headers(response):
"""Applies the configuration's http headers to all responses"""
- for k, v in config.get("HTTP_HEADERS").items():
+
+ # HTTP_HEADERS is deprecated, this provides backwards compatibility
+ for k, v in (
Review comment:
check out the `{}.update()` method to merge dicts
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]