librelist archives

« back to archive

mimetypes

mimetypes

From:
Mathijs Kwik
Date:
2011-08-31 @ 10:45
Hi,

I tried changing a mimetype through the config file, but after that,
mongrel2 would serve files with that extension using the default
mimetype.
I checked the sqlite db and it turns out the record just gets removed
instead of updated.

I used the syntax from an example config:

mimetypes = {
  '.js': 'application/javascript'
}

I'm on the mongrel2 develop branch. Is this a known issue?
Thanks,
Mathijs

Re: [mongrel2] mimetypes

From:
Zed A. Shaw
Date:
2011-08-31 @ 17:31
On Wed, Aug 31, 2011 at 12:45:13PM +0200, Mathijs Kwik wrote:
> Hi,
> 
> I tried changing a mimetype through the config file, but after that,
> mongrel2 would serve files with that extension using the default
> mimetype.
> I checked the sqlite db and it turns out the record just gets removed
> instead of updated.

Strange, I think I'm using this.

> I'm on the mongrel2 develop branch. Is this a known issue?

Nope, news to me.  I'll check it out and report back.

-- 
Zed A. Shaw
http://zedshaw.com/