[rt-devel] FastCGI Content-Type fix

Jesse Vincent jesse at bestpractical.com
Mon Jan 28 00:09:37 EST 2002


Applied to my sources. thanks.

	-j


On Sun, Jan 27, 2002 at 11:54:00PM -0500, Rich Lafferty wrote:
> 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 -----------+-----------------------------------------------
> 
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.




More information about the Rt-devel mailing list