Merge "Make web status text/plain"
This commit is contained in:
commit
cb1f52634a
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue