$r = new http\Env\Response;
$r->setContentType("text/plain");
$r->setContentDisposition(
- http\Env\Response::CONTENT_DISPOSITION_ATTACHMENT,
- basename(__FILE__)
+ array("attachment" => array(array("filename" => basename(__FILE__))))
);
$r->setBody(new http\Message\Body(fopen(__FILE__, "rb")));
$r->send();