Browse Source

Make before_first_request a decorator

pull/1208/head
Armin Ronacher 11 years ago
parent
commit
46c24da016
  1. 1
      CHANGES
  2. 1
      flask/app.py

1
CHANGES

@ -16,6 +16,7 @@ Version 0.10.2
context to be passed to teardown handlers.
- Fixed an issue with query parameters getting removed from requests in
the test client when absolute URLs were requested.
- Made `@before_first_request` into a decorator as intended.
Version 0.10.1
--------------

1
flask/app.py

@ -1205,6 +1205,7 @@ class Flask(_PackageBoundObject):
.. versionadded:: 0.8
"""
self.before_first_request_funcs.append(f)
return f
@setupmethod
def after_request(self, f):

Loading…
Cancel
Save