diff --git a/applications/admin/controllers/appadmin.py b/applications/admin/controllers/appadmin.py index 0924d61e..7afa5fb5 100644 --- a/applications/admin/controllers/appadmin.py +++ b/applications/admin/controllers/appadmin.py @@ -577,8 +577,8 @@ def bg_graph_model(): graph.add_edge(n1, n2, color="#4C4C4C", label='') graph.layout() - #return graph.draw(format='png', prog='dot') if not request.args: + response.headers['Content-Type'] = 'image/png' return graph.draw(format='png', prog='dot') else: response.headers['Content-Disposition']='attachment;filename=graph.%s'%request.args(0) diff --git a/applications/examples/controllers/appadmin.py b/applications/examples/controllers/appadmin.py index 0924d61e..7afa5fb5 100644 --- a/applications/examples/controllers/appadmin.py +++ b/applications/examples/controllers/appadmin.py @@ -577,8 +577,8 @@ def bg_graph_model(): graph.add_edge(n1, n2, color="#4C4C4C", label='') graph.layout() - #return graph.draw(format='png', prog='dot') if not request.args: + response.headers['Content-Type'] = 'image/png' return graph.draw(format='png', prog='dot') else: response.headers['Content-Disposition']='attachment;filename=graph.%s'%request.args(0) diff --git a/applications/welcome/controllers/appadmin.py b/applications/welcome/controllers/appadmin.py index 0924d61e..7afa5fb5 100644 --- a/applications/welcome/controllers/appadmin.py +++ b/applications/welcome/controllers/appadmin.py @@ -577,8 +577,8 @@ def bg_graph_model(): graph.add_edge(n1, n2, color="#4C4C4C", label='') graph.layout() - #return graph.draw(format='png', prog='dot') if not request.args: + response.headers['Content-Type'] = 'image/png' return graph.draw(format='png', prog='dot') else: response.headers['Content-Disposition']='attachment;filename=graph.%s'%request.args(0)