Browse Source

Fix deferred callback doc

pull/2966/head
jangjunha 6 years ago
parent
commit
eef6c34b57
  1. 1
      docs/patterns/deferredcallbacks.rst

1
docs/patterns/deferredcallbacks.rst

@ -41,5 +41,6 @@ user in a cookie in a :meth:`~flask.Flask.before_request` callback::
@after_this_request
def remember_language(response):
response.set_cookie('user_lang', language)
return response
g.language = language

Loading…
Cancel
Save