diff options
author | Milo Casagrande <milo@ubuntu.com> | 2013-07-31 15:26:03 +0200 |
---|---|---|
committer | Milo Casagrande <milo@ubuntu.com> | 2013-07-31 15:26:03 +0200 |
commit | e09457fa6e6ac2862410be7f48997b648ea3c14e (patch) | |
tree | 9f78abe2429ceeb298a55317ff5e925a7b056c40 /integration-tests.d | |
parent | 961a02ab1ab3330838578ae2b42b5f3f96c2b62a (diff) |
Added trailing slash support for flask URL.
Diffstat (limited to 'integration-tests.d')
-rw-r--r-- | integration-tests.d/lib/server.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/integration-tests.d/lib/server.py b/integration-tests.d/lib/server.py index 8ecb2cd..2d08d14 100644 --- a/integration-tests.d/lib/server.py +++ b/integration-tests.d/lib/server.py @@ -1,5 +1,4 @@ import os -import sys import yaml from flask import ( @@ -25,7 +24,7 @@ def exit(): request.environ['werkzeug.server.shutdown']() return "" -@app.route('/<status_code>', methods=['GET', 'POST']) +@app.route('/<status_code>/', methods=['GET', 'POST']) def reply(status_code): status = int(aliases.get(status_code, status_code)) |