Merge "Fix versions api by using webob correctly" into stable/ussuri

This commit is contained in:
Zuul 2020-07-16 02:45:34 +00:00 committed by Gerrit Code Review
commit a7a673127d
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)