X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=ecd6a5ad30bb9c008fb5de85b92eb8b3c10c427c;hp=2b54ae5cd6ca910407390142824ec4f85cb6c8cf;hb=b5422dac9b58ea664a1159e8b9db0cc67a37ea7e;hpb=19b9752a7f43e1fcf1bdfd0040c1e8edfe9e6f3a diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 2b54ae5..ecd6a5a 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -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'