Fix for 1111 Reordering of format_out 63/9563/1
authorFrank Bryden <frank.bryden@etsi.org>
Mon, 10 Aug 2020 11:44:11 +0000 (11:44 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 10 Aug 2020 14:01:45 +0000 (14:01 +0000)
Change-Id: I59f64d22c39c82bf099c74647d0f128092d24f95
Signed-off-by: Frank Bryden <frank.bryden@etsi.org>
osm_nbi/nbi.py

index fd2b3e8..5a79a51 100644 (file)
@@ -619,7 +619,7 @@ class Server(object):
         if accept:
             if "text/html" in accept:
                 return html.format(data, cherrypy.request, cherrypy.response, token_info)
-            elif "application/yaml" in accept or "*/*" in accept or "text/plain" in accept:
+            elif "application/yaml" in accept or "*/*" in accept:
                 pass
             elif "application/json" in accept or (cherrypy.response.status and cherrypy.response.status >= 300):
                 cherrypy.response.headers["Content-Type"] = 'application/json; charset=utf-8'