Browse Source

Fix documention for `after_this_request`

pull/530/head
Matt Wright 13 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('/')
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