better PHP-5.3 compatibility
[m6w6/ext-http] / tests / response003.phpt
index 1e9e0abf6cfe48fedfad74ec1e2badc5a83b3e5d..8331e0f8c721cb1c2759c17c8ec4961cdf2a3358 100644 (file)
@@ -12,8 +12,7 @@ a=b
 $r = new http\Env\Response;
 $r->setContentType("text/plain");
 $r->setContentDisposition(
-    http\Env\Response::CONTENT_DISPOSITION_ATTACHMENT,
-    basename(__FILE__)
+    array("attachment" => array("filename" => basename(__FILE__)))
 );
 $r->setBody(new http\Message\Body(fopen(__FILE__, "rb")));
 $r->send();