We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 010b59e + 3faa9ae commit b851652Copy full SHA for b851652
src/cs50/flask.py
@@ -49,8 +49,8 @@ def _after(*args, **kwargs):
49
import flask
50
from werkzeug.middleware.proxy_fix import ProxyFix
51
_before = flask.Flask.__init__
52
- def _after(*args, **kwargs):
53
- _before(*args, **kwargs)
+ def _after(self, *args, **kwargs):
+ _before(self, *args, **kwargs)
54
self.wsgi_app = ProxyFix(self.wsgi_app, x_proto=1)
55
flask.Flask.__init__ = _after
56
except:
0 commit comments