Merge "Fix versions api by using webob correctly"

This commit is contained in:
Zuul 2020-06-05 07:54:17 +00:00 committed by Gerrit Code Review
commit aac7c6b80e
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Controller(object):
response = webob.Response(request=req,
status=http_client.MULTIPLE_CHOICES,
content_type='application/json')
response.body = jsonutils.dumps(dict(versions=version_objs))
response.text = jsonutils.dumps(dict(versions=version_objs))
return response
@webob.dec.wsgify(RequestClass=wsgi.Request)