forked from orbit-oss/flask
Fix documention for after_this_request
This commit is contained in:
parent
9be47f5932
commit
1f3e667b5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue