fix issue #879 and add a test for it
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
This commit is contained in:
parent
964c4a37c0
commit
280d865960
2 changed files with 19 additions and 1 deletions
|
|
@ -1492,9 +1492,9 @@ class Flask(_PackageBoundObject):
|
|||
with self._before_request_lock:
|
||||
if self._got_first_request:
|
||||
return
|
||||
self._got_first_request = True
|
||||
for func in self.before_first_request_funcs:
|
||||
func()
|
||||
self._got_first_request = True
|
||||
|
||||
def make_default_options_response(self):
|
||||
"""This method is called to create the default `OPTIONS` response.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue