Skip Menu |

This queue is for tickets about the Catalyst-View-SVGTTGraph CPAN distribution.

Report information
The Basics
Id: 65740
Status: resolved
Priority: 0/
Queue: Catalyst-View-SVGTTGraph

People
Owner: shot [...] bindstorm.jp
Requestors: terencemo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.011
Fixed in: (no value)



Subject: Gzip compression by default in SVG::TT::Graph
Gzip compressed data is sent to browser with content type image/svg-xml, so browser does not show graph. This happens because current version of SVG::TT::Graph uses Gzip compression by default. So the graph generated by this module is a gzip compressed SVG image.
This can be fixed by setting gzip content encoding. Please find the patch attached.
Subject: Catalyst-View-SVGTTGraph.patch
--- SVGTTGraph.pm 2011-02-15 18:11:51.000000000 +0530 +++ SVGTTGraph.pm.new 2011-02-15 18:12:44.000000000 +0530 @@ -94,6 +94,7 @@ unless($c->svgttg->graph_obj); # $c->log->debug(Dumper($c->view_svggraph)); $c->res->header('Content-Type' => 'image/svg+xml'); + $c->res->header('Content-Encoding' => 'gzip'); $c->res->body($c->svgttg->burn); return 1; }
Hi Shiva, This is done. Kindly verify. Regards, Terence.
Terribly sorry for the above.