You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/07 11:28:53 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #13517: Support Brotli compression for web views

mik-laj commented on a change in pull request #13517:
URL: https://github.com/apache/airflow/pull/13517#discussion_r553271516



##########
File path: airflow/www/decorators.py
##########
@@ -62,38 +61,28 @@ def wrapper(*args, **kwargs):
     return cast(T, wrapper)
 
 
-def gzipped(f: T) -> T:
+def compressed(f: T) -> T:

Review comment:
       This decorator requires that we have a global variable with a Compress instance. I preferred to avoid it, so I implemented this decorator again. See: https://github.com/colour-science/flask-compress/issues/12




----------------------------------------------------------------
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:
users@infra.apache.org