Merge branch 'master' of github.com:mitsuhiko/flask

This commit is contained in:
Armin Ronacher 2012-06-27 12:25:21 +01:00
commit 2e816f554a
21 changed files with 166 additions and 56 deletions

View file

@ -40,7 +40,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!'