Skip to content

Content-disposition header for friendlier "save image as..." from browser#1

Open
wren-hearn wants to merge 5 commits into
polothy:callGraphSVGfrom
wren-hearn:master
Open

Content-disposition header for friendlier "save image as..." from browser#1
wren-hearn wants to merge 5 commits into
polothy:callGraphSVGfrom
wren-hearn:master

Conversation

@wren-hearn
Copy link
Copy Markdown

Hi there,

Your SVG fix was great. However, when right-clicking to save the image, the default filename in the save dialog was "index.php." I've added a content-disposition header to rename the file so it has a SVG extension instead. It also saves the file with the same name as the cachegrind file, which may be a nice bonus.

I had some indentation issues so please excuse the extra line changes in the diff. I'm not really handy enough with git yet to fix my mess. :(

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant