views:

93

answers:

1

I want to host an ical file, but when serving it, I need to set the Content-type header to calendar and stuff

in php, I would just

<?php
  header ("Content-type: text/calendar")
?>
//calendar stuff proceeds

Can I do the same using ruby? or can I somehow tell apache to set a different header when serving this file?

+2  A: 

use mod_headers

Itay Moav