Merge pull request #530 from mattupstate/master
Fix documention for `after_this_request`
This commit is contained in:
commit
274d1a82f8
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