projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes Bug 1275 - aiokafka 0.7.0 dependency added
[osm/NBI.git]
/
osm_nbi
/
nbi.py
diff --git
a/osm_nbi/nbi.py
b/osm_nbi/nbi.py
index
2b54ae5
..
ecd6a5a
100644
(file)
--- 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)
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'
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'