Fix documention for after_this_request

This commit is contained in:
Matt Wright 2012-06-18 18:33:17 -03:00
parent 9be47f5932
commit 1f3e667b5d

View file

@ -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!'