Browse Source

Fix documention for `after_this_request`

pull/530/head
Matt Wright 12 years ago
parent
commit
1f3e667b5d
  1. 2
      flask/ctx.py

2
flask/ctx.py

@ -41,7 +41,7 @@ def after_this_request(f):
@app.route('/') @app.route('/')
def index(): def index():
@after_this_request @after_this_request
def add_header(): def add_header(response):
response.headers['X-Foo'] = 'Parachute' response.headers['X-Foo'] = 'Parachute'
return response return response
return 'Hello World!' return 'Hello World!'

Loading…
Cancel
Save