diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2021-10-01 10:23:49 +0200 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2021-10-01 10:23:49 +0200 |
commit | 148e3d412f4cc8e6632a95741a457383b3ca852e (patch) | |
tree | 22a812a2d64c73efb8af678088777390ad5df92c /src/wsgi.py | |
parent | cb47680777b3fd3bcd955f9e81ddf45c9b69ecfa (diff) | |
parent | f3204eecc33c60289ea0c2117ed3316beb59cde5 (diff) |
Fixed conflict.
Diffstat (limited to 'src/wsgi.py')
-rwxr-xr-x | src/wsgi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wsgi.py b/src/wsgi.py index 15f9224..3c3d363 100755 --- a/src/wsgi.py +++ b/src/wsgi.py @@ -99,12 +99,12 @@ class EPAdd(CollectorResource): resp.text = CollectorResource.parse_error(decodedin) return - key = self._db.add(json_data) - resp.text = repr(key) + '\n' + keys = self._db.add(json_data) + resp.text = repr(keys) + '\n' def init(url_res_map, addr='', port=8000): - app = falcon.App() + app = falcon.App(cors_enable=True) for url, res in url_res_map: app.add_route(url, res) return make_server(addr, port, app) |