[Dancer-users] Plack deployment question
deepak.gulati at gmail.com
Wed Apr 7 15:14:59 UTC 2010
Ok, from the docs:
|| By default, Dancer will automatically detect the mime-types to use
for the static files accessed.
But this doesn't seem to work when running under Starman/Starlet. When
I explicitly set the mime-type for css files:
mime_type css => 'text/css';
Everything works as expected. Any idea why I have to explicitly
declare the mime type for a static file?
On Wed, Apr 7, 2010 at 7:24 PM, Deepak Gulati <deepak.gulati at gmail.com> wrote:
> Hi Folks,
> This is more of a Plack/PSGI question, but I am hoping someone here
> can help. I am using plackup to test app.psgi with Starlet (and
> occasionally with Starman) server. My CSS files are being served with
> content-type of text/plain and end up not being interpreted by Firefox
> or Chrome (I see unstyled content). This doesn't happen when using
> HTTP::Server::PSGI. Any idea where I can configure the mime types for
> Starlet or Starman?
More information about the Dancer-users