On Tue, Feb 8, 2011 at 12:10 AM, Richard Huxton <dev@archonet.com> wrote:
On 07/02/11 21:52, sawyer x wrote:
On Mon, Feb 7, 2011 at 11:44 PM, Flavio Poletti <polettix@gmail.com
   Do you mean that header and send_file should play well together like
   the OP is hoping,

Yup! :)

Any ideas, comments?

Are we talking about merging the elements into the one function-call?
 send_file(
   $contents,
   type=>'text/foo',
   as_attachment=>'myfile.foo' )

My thoughts are more of fixing send_file itself, so Matthew (and anyone else) could just do send_file($filename).