Skip to content

Commit

Permalink
Merge pull request #530 from mattupstate/master
Browse files Browse the repository at this point in the history
Fix documention for `after_this_request`
  • Loading branch information
Kenneth Reitz committed Jun 25, 2012
2 parents 7bc6eea + 1f3e667 commit 274d1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask/ctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!'
Expand Down

0 comments on commit 274d1a8

Please sign in to comment.