Skip to content

Commit ea497f0

Browse files
committed
Gzip and compressing
1 parent 99911e6 commit ea497f0

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

packet/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88

99
import csh_ldap
1010
from flask import Flask
11+
from flask_gzip import Gzip
1112
from flask_migrate import Migrate
1213
from flask_pyoidc.flask_pyoidc import OIDCAuthentication
1314
from flask_pyoidc.provider_configuration import ProviderConfiguration, ClientMetadata
1415
from flask_sqlalchemy import SQLAlchemy
1516

1617
app = Flask(__name__)
18+
gzip = Gzip(app)
1719

1820
# Load default configuration and any environment variable overrides
1921
_root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

packet/templates/extend/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
{% endblock %}
2020

2121
{% block includes %}
22-
2322
{% endblock %}
2423

2524
{% block scripts %}

packet/templates/extend/email.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@
1313
<body>
1414
{% block body %}
1515
{% endblock %}
16-
1716
</body>
1817
</html>

packet/templates/include/head.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<head>
2-
32
<meta charset="utf-8">
43
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
54
<meta name="description" content="CSH Web Packet">

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Flask~=1.1.0
22
Flask-pyoidc~=2.2.0
33
Flask-Mail~=0.9.1
4+
Flask-Gzip~=0.2
45
flask_sqlalchemy~=2.3.2
56
psycopg2-binary~=2.8.3
67
Flask-Migrate~=2.2.1

0 commit comments

Comments
 (0)