develooper Front page | perl.cvs.p5ee | Postings from April 2008

[svn:p5ee] r11129 - p5ee/trunk/App-Widget/lib/App

From:
spadkins
Date:
April 21, 2008 12:50
Subject:
[svn:p5ee] r11129 - p5ee/trunk/App-Widget/lib/App
Author: spadkins
Date: Mon Apr 21 12:50:12 2008
New Revision: 11129

Modified:
   p5ee/trunk/App-Widget/lib/App/Widget.pm

Log:
bin in content_type now returns text/html

Modified: p5ee/trunk/App-Widget/lib/App/Widget.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget.pm	(original)
+++ p5ee/trunk/App-Widget/lib/App/Widget.pm	Mon Apr 21 12:50:12 2008
@@ -294,7 +294,8 @@
         xls  => "application/vnd.ms-excel\nContent-disposition: attachment; filename=\"$filename.xls\"",
         xml  => "application/xml",
         csv  => "application/octet-stream\nContent-disposition: attachment; filename=\"$filename.csv\"",
-        bin  => "application/octet-stream\nContent-disposition: attachment; filename=\"$filename.bin\"",
+        #bin  => "application/octet-stream\nContent-disposition: attachment; filename=\"$filename.bin\"",
+        bin  => "text/html",
     );
 
     my $extension = $self->{extension} || "html";



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About