Created
April 22, 2015 13:40
-
-
Save jangaraj/64b88b6eed7f8d0221e6 to your computer and use it in GitHub Desktop.
Zenoss 4 - Chrome zooming issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.