Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always pop allow_unsafe_werkzeug from kwargs #1877

Merged
merged 1 commit into from Sep 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/flask_socketio/__init__.py
Expand Up @@ -632,9 +632,9 @@ def run(self, app, host=None, port=None, **kwargs): # pragma: no cover
from werkzeug._internal import _log
_log('warning', 'WebSocket transport not available. Install '
'simple-websocket for improved performance.')
allow_unsafe_werkzeug = kwargs.pop('allow_unsafe_werkzeug',
False)
if not sys.stdin or not sys.stdin.isatty(): # pragma: no cover
allow_unsafe_werkzeug = kwargs.pop('allow_unsafe_werkzeug',
False)
if not allow_unsafe_werkzeug:
raise RuntimeError('The Werkzeug web server is not '
'designed to run in production. Pass '
Expand Down