[rt-devel] FastCGI Content-Type fix

Rich Lafferty rich+rt at lafferty.ca
Sun Jan 27 23:54:00 EST 2002


A quick fix to ensure that content-types appear correctly for
attachments when using FastCGI:

--- mason_handler.fcgi.2-0-11	Sun Jan 27 22:35:32 2002
+++ mason_handler.fcgi	Sun Jan 27 23:42:07 2002
@@ -41,7 +41,7 @@
 
 {  
     package HTML::Mason::Commands;
-    use vars qw(%session);
+    use vars qw(%session $ContentType);
     
     use RT; 
     use RT::Ticket;
@@ -87,7 +87,6 @@
 
     # set the page's content type.
     # In this case, just save it to a variable that we can pull later;
-    my $ContentType;
     sub SetContentType {
 	$ContentType = shift;
     }


Cheers,

  -Rich

-- 
Rich Lafferty --------------+-----------------------------------------------
 Ottawa, Ontario, Canada    |  Save the Pacific Northwest Tree Octopus!
 http://www.lafferty.ca/    |    http://zapatopi.net/treeoctopus.html
rich at lafferty.ca -----------+-----------------------------------------------




More information about the Rt-devel mailing list