X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fplatal.php;h=5a161f691b23f5755fd712e544fd59e52d8d783a;hb=5660032ac785d410f90e3f5b0d6948dc90b0cfea;hp=b480a839a9703a1f214c029b454e6b02da871af7;hpb=e46cf8c46341b447cc3701c8afcc9baec3da11e5;p=platal.git diff --git a/modules/platal.php b/modules/platal.php index b480a83..5a161f6 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -75,14 +75,8 @@ class PlatalModule extends PLModule function handler_cacert(&$page) { - $data = file_get_contents("/etc/ssl/xorgCA/cacert.pem","r"); - header("Pragma:"); - header("Set-Cookie:"); - header("Cache-Control:"); - header("Expires:"); - header("Content-Type: application/x-x509-ca-cert"); - header("Content-Length: ".strlen($data)); - echo $data; + pl_cached_content_headers("application/x-x509-ca-cert"); + readfile("/etc/ssl/xorgCA/cacert.pem"); exit; }