Skip to content

Instantly share code, notes, and snippets.

@jangaraj
Created April 22, 2015 13:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jangaraj/64b88b6eed7f8d0221e6 to your computer and use it in GitHub Desktop.
Save jangaraj/64b88b6eed7f8d0221e6 to your computer and use it in GitHub Desktop.
Zenoss 4 - Chrome zooming issue
# dirty, not tested hack http://www.zenoss.org/forum/8806
# it will solve issue with Chrome, but question is what is broken after this hack?
sed -i -e "s# request.setHeader('Content-type', mimetype)# if mimetype == 'image/png':\n mimetype = 'application/javascript'\n request.setHeader('Content-type', mimetype)#g" /opt/zenoss/Products/ZenRRD/zenrender.py
# or edit /opt/zenoss/Products/ZenRRD/zenrender.py
original:
request.setHeader('Content-type', mimetype)
edited:
if mimetype == 'image/png':
mimetype = 'application/javascript'
request.setHeader('Content-type', mimetype)
@jwalker11
Copy link

I'm late in the game on applying this patch. Has anyone been using this patch for a while and can confirm that it doesn't break other functionality? Thank you for the post as this was very hindering not being able to zoom in on graphs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment