Merge "Make web status text/plain"

This commit is contained in:
Jenkins 2017-02-14 15:36:48 +00:00 committed by Gerrit Code Review
commit cb1f52634a
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class TestWebApp(tests.DBTestCase):
"http://localhost:%s/image-list" % port)
f = urllib2.urlopen(req)
self.assertEqual(f.info().getheader('Content-Type'),
'application/text')
'text/plain; charset=UTF-8')
data = f.read()
self.assertTrue('fake-image' in data)

View File

@ -93,7 +93,7 @@ class WebApp(threading.Thread):
if request.path.endswith('.json'):
content_type = 'application/json'
else:
content_type = 'application/text'
content_type = 'text/plain'
response = webob.Response(body=output,
content_type=content_type)