Commit c6347434 by Bach Dániel

dashboard: use request.get instead of post in GraphViewBase

parent a2c5f856
......@@ -2297,7 +2297,8 @@ class GraphViewBase(LoginRequiredMixin, View):
'title': title.encode('UTF-8'),
'width': '500',
'height': '200'}
response ='%s/render/' % graphite_url, data=params)
logger.debug('%s %s', graphite_url, params)
response = requests.get('%s/render/' % graphite_url, params=params)
return HttpResponse(response.content, mimetype="image/png")
def get_prefix(self, instance):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment