Fix wsgiref py3 error

The wsgiref's behevior is changed under py3.

Change-Id: I09a853a4e91b0ce9bfa656a8b94bc175a75576a6
This commit is contained in:
xywang 2018-07-24 11:58:11 +08:00
parent 6319cfa07f
commit 82c955ebf3

View File

@ -34,6 +34,6 @@ class Resource(object):
self.versions = utils.to_json(VERSIONS)
def on_get(self, req, resp, project_id):
resp.data = self.versions
resp.body = self.versions
resp.status = falcon.HTTP_300