forked from orbit-oss/flask
Merge branch 'master' of github.com:mitsuhiko/flask
This commit is contained in:
commit
2e816f554a
21 changed files with 166 additions and 56 deletions
|
|
@ -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!'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue