Hi.
I use HTTP::Server::Simple::Mason for deploying Mason web application.
My conf:
#!/usr/bin/perl -w
use strict;
use HTTP::Server::Simple::Mason;
my $server = MyApp::Server->new(666)->background();
print "Use 'kill $server' to stop server.\n";
package MyApp::Server;
use base qw/HTTP::Server::Simple::Mason/;
sub mason_config {
return ( comp_root => '/usr/local/webapp/');
}
Request: localhost:666/images/map.png return:
�PNG IHDR��a
pHYs���o�d�IDATx�mSKHTa��sǙ�QJ�5�F-(�H)�HB-�������V�Z���
How i can stop Mason Parser for this image?
I put "return -1 if $r->uri() =~ m|^/images|;" in autohandler(i don`t have
handler.pl)
but he return just -1 ))
Any ideas?
Thanks.
Best Regards
Nikolay Kinash,
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users