Browse Source

Merge pull request #530 from mattupstate/master

Fix documention for `after_this_request`
pull/509/merge
Kenneth Reitz 13 years ago
parent
commit
274d1a82f8
  1. 2
      flask/ctx.py

2
flask/ctx.py

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

Loading…
Cancel
Save