Skip to content

Commit

Permalink
fixed wrong method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Barakudum committed Jan 29, 2024
1 parent e7d5745 commit 59163bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jarklin/_commands/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ def make_session_permanent() -> None:
app.config['SESSION_REFRESH_EACH_REQUEST'] = \
config.getboolean('web', 'session', 'refresh_each_request', fallback=False)

if config.getbool('web', 'gzip', fallback=True):
if config.getboolean('web', 'gzip', fallback=True):
from flask_compress import Compress # no need to load unless required
Compress(app)

# pip install flask-kaccel for nginx
# app.config['USE_X_SENDFILE'] = config.getboolean('web', 'x_sendfile', fallback=False)

if config.getbool('web', 'proxy_fix', fallback=None) is not None:
if config.getboolean('web', 'proxy_fix', fallback=None) is not None:
app.wsgi_app = ProxyFix(
app=app,
x_for=config.getint('web', 'proxy_fix', 'x_forwarded_for', fallback=1),
Expand Down

0 comments on commit 59163bb

Please sign in to comment.