Skip to content

Commit

Permalink
make a copy of the environ dict
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Dec 16, 2016
1 parent 7724565 commit be08858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, socketio_app, flask_app, socketio_path='socket.io'):
socketio_path)

def __call__(self, environ, start_response):
environ = environ.copy()
environ['flask.app'] = self.flask_app
return super(_SocketIOMiddleware, self).__call__(environ,
start_response)
Expand Down

0 comments on commit be08858

Please sign in to comment.