Browse Source

Merge pull request #2966 from jangjunha/fix-doc-deferredcallbacks

Docs: Fix deferredcallbacks.rst
1.0-maintenance
David Lord 6 years ago committed by GitHub
parent
commit
f7e7f2ab11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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